Escape hyphens used as parts of C `->` operators.
Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.B EINVAL
.I flags
is not 0, or the rule accesses are inconsistent (i.e.,
-.I rule_attr->allowed_access
+.I rule_attr\->allowed_access
is not a subset of the ruleset handled accesses).
.TP
.B ENOMSG
Empty accesses (i.e.,
-.I rule_attr->allowed_access
+.I rule_attr\->allowed_access
is 0).
.TP
.B EBADF
.TP
.B ENOMSG
Empty accesses (i.e.,
-.I attr->handled_access_fs
+.I attr\->handled_access_fs
is 0).
.SH VERSIONS
Landlock was added in Linux 5.13.
.PP
.in +4n
.EX
-unsigned int current_mnt_flags = mnt->mnt_flags;
+unsigned int current_mnt_flags = mnt\->mnt_flags;
/*
* Clear all flags set in .attr_clr,
* clearing MOUNT_ATTR_NOEXEC and MOUNT_ATTR_NODEV.
*/
-current_mnt_flags &= ~attr->attr_clr;
+current_mnt_flags &= \(tiattr\->attr_clr;
/*
* Now set all flags set in .attr_set,
* applying MOUNT_ATTR_RDONLY and MOUNT_ATTR_NOSUID.
*/
-current_mnt_flags |= attr->attr_set;
+current_mnt_flags |= attr\->attr_set;
-mnt->mnt_flags = current_mnt_flags;
+mnt\->mnt_flags = current_mnt_flags;
.EE
.in
.PP
parameter is ignored.
A new perfmon context is created as specified in
.I ctxt
-and its file descriptor is returned in \fIctxt->ctx_fd\fR.
+and its file descriptor is returned in \fIctxt\->ctx_fd\fR.
.IP
The file descriptor can be used in subsequent calls to
.BR perfmonctl ()
.in +4n
int fd, removeFd;
-fd = openat(req->data.args[0], path, req->data.args[2],
- req->data.args[3]);
+fd = openat(req\->data.args[0], path, req\->data.args[2],
+ req\->data.args[3]);
struct seccomp_notif_addfd addfd;
-addfd.id = req->id; /* Cookie from SECCOMP_IOCTL_NOTIF_RECV */
+addfd.id = req\->id; /* Cookie from SECCOMP_IOCTL_NOTIF_RECV */
addfd.srcfd = fd;
addfd.newfd = 0;
addfd.flags = 0;
struct seccomp_notif_resp *resp;
/* Code to allocate 'resp' omitted */
-resp->id = req->id;
-resp->error = 0; /* "Success" */
-resp->val = targetFd;
-resp->flags = 0;
+resp\->id = req\->id;
+resp\->error = 0; /* "Success" */
+resp\->val = targetFd;
+resp\->flags = 0;
ioctl(notifyFd, SECCOMP_IOCTL_NOTIF_SEND, resp);
.in
.EE
.B SA_UNSUPPORTED
.I clear
in
-.IR oldact->sa_flags ,
+.IR oldact\->sa_flags ,
then
-.I oldact->sa_flags
+.I oldact\->sa_flags
may be used as a bitmask
describing which of the potentially unsupported flags are,
in fact, supported.