@@ -149,10 +149,10 @@ static const struct file_operations ruleset_fops = {
149149 *
150150 * Possible returned errors are:
151151 *
152- * - EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
153- * - EINVAL: unknown @flags, or unknown access, or too small @size;
154- * - E2BIG or EFAULT: @attr or @size inconsistencies;
155- * - ENOMSG: empty &landlock_ruleset_attr.handled_access_fs.
152+ * - % EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
153+ * - % EINVAL: unknown @flags, or unknown access, or too small @size;
154+ * - % E2BIG or % EFAULT: @attr or @size inconsistencies;
155+ * - % ENOMSG: empty &landlock_ruleset_attr.handled_access_fs.
156156 */
157157SYSCALL_DEFINE3 (landlock_create_ruleset ,
158158 const struct landlock_ruleset_attr __user * const , attr ,
@@ -280,7 +280,7 @@ static int get_path_from_fd(const s32 fd, struct path *const path)
280280 * @ruleset_fd: File descriptor tied to the ruleset that should be extended
281281 * with the new rule.
282282 * @rule_type: Identify the structure type pointed to by @rule_attr (only
283- * LANDLOCK_RULE_PATH_BENEATH for now).
283+ * % LANDLOCK_RULE_PATH_BENEATH for now).
284284 * @rule_attr: Pointer to a rule (only of type &struct
285285 * landlock_path_beneath_attr for now).
286286 * @flags: Must be 0.
@@ -290,17 +290,17 @@ static int get_path_from_fd(const s32 fd, struct path *const path)
290290 *
291291 * Possible returned errors are:
292292 *
293- * - EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
294- * - EINVAL: @flags is not 0, or inconsistent access in the rule (i.e.
293+ * - % EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
294+ * - % EINVAL: @flags is not 0, or inconsistent access in the rule (i.e.
295295 * &landlock_path_beneath_attr.allowed_access is not a subset of the
296296 * ruleset handled accesses);
297- * - ENOMSG: Empty accesses (e.g. &landlock_path_beneath_attr.allowed_access);
298- * - EBADF: @ruleset_fd is not a file descriptor for the current thread, or a
297+ * - % ENOMSG: Empty accesses (e.g. &landlock_path_beneath_attr.allowed_access);
298+ * - % EBADF: @ruleset_fd is not a file descriptor for the current thread, or a
299299 * member of @rule_attr is not a file descriptor as expected;
300- * - EBADFD: @ruleset_fd is not a ruleset file descriptor, or a member of
300+ * - % EBADFD: @ruleset_fd is not a ruleset file descriptor, or a member of
301301 * @rule_attr is not the expected file descriptor type;
302- * - EPERM: @ruleset_fd has no write access to the underlying ruleset;
303- * - EFAULT: @rule_attr inconsistency.
302+ * - % EPERM: @ruleset_fd has no write access to the underlying ruleset;
303+ * - % EFAULT: @rule_attr inconsistency.
304304 */
305305SYSCALL_DEFINE4 (landlock_add_rule , const int , ruleset_fd ,
306306 const enum landlock_rule_type , rule_type ,
@@ -378,20 +378,20 @@ SYSCALL_DEFINE4(landlock_add_rule, const int, ruleset_fd,
378378 * @flags: Must be 0.
379379 *
380380 * This system call enables to enforce a Landlock ruleset on the current
381- * thread. Enforcing a ruleset requires that the task has CAP_SYS_ADMIN in its
381+ * thread. Enforcing a ruleset requires that the task has % CAP_SYS_ADMIN in its
382382 * namespace or is running with no_new_privs. This avoids scenarios where
383383 * unprivileged tasks can affect the behavior of privileged children.
384384 *
385385 * Possible returned errors are:
386386 *
387- * - EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
388- * - EINVAL: @flags is not 0.
389- * - EBADF: @ruleset_fd is not a file descriptor for the current thread;
390- * - EBADFD: @ruleset_fd is not a ruleset file descriptor;
391- * - EPERM: @ruleset_fd has no read access to the underlying ruleset, or the
387+ * - % EOPNOTSUPP: Landlock is supported by the kernel but disabled at boot time;
388+ * - % EINVAL: @flags is not 0.
389+ * - % EBADF: @ruleset_fd is not a file descriptor for the current thread;
390+ * - % EBADFD: @ruleset_fd is not a ruleset file descriptor;
391+ * - % EPERM: @ruleset_fd has no read access to the underlying ruleset, or the
392392 * current thread is not running with no_new_privs, or it doesn't have
393- * CAP_SYS_ADMIN in its namespace.
394- * - E2BIG: The maximum number of stacked rulesets is reached for the current
393+ * % CAP_SYS_ADMIN in its namespace.
394+ * - % E2BIG: The maximum number of stacked rulesets is reached for the current
395395 * thread.
396396 */
397397SYSCALL_DEFINE2 (landlock_restrict_self , const int , ruleset_fd , const __u32 ,
0 commit comments