HomeFreeBSD

Reject F_SETLK_REMOTE commands when sysid == 0.

Description

Reject F_SETLK_REMOTE commands when sysid == 0.

A sysid of 0 denotes the local system, and some handlers for remote
locking commands do not attempt to deal with local locks. Note that
F_SETLK_REMOTE is only available to privileged users as it is intended
to be used as a testing interface.

Reviewed by: kib
Reported by: syzbot+9c457a6ae014a3281eb8@syzkaller.appspotmail.com
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19702

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D19702: Ignore F_SETLK_REMOTE requests for sysid 0.
Parents
rS345512: Correct contradictory information on default syslog logging priority.
Branches
Unknown
Tags
Unknown