Lines Matching full:flags

27 static void audit_mnt_flags(struct audit_buffer *ab, unsigned long flags)  in audit_mnt_flags()  argument
29 if (flags & MS_RDONLY) in audit_mnt_flags()
33 if (flags & MS_NOSUID) in audit_mnt_flags()
35 if (flags & MS_NODEV) in audit_mnt_flags()
37 if (flags & MS_NOEXEC) in audit_mnt_flags()
39 if (flags & MS_SYNCHRONOUS) in audit_mnt_flags()
41 if (flags & MS_REMOUNT) in audit_mnt_flags()
43 if (flags & MS_MANDLOCK) in audit_mnt_flags()
45 if (flags & MS_DIRSYNC) in audit_mnt_flags()
47 if (flags & MS_NOATIME) in audit_mnt_flags()
49 if (flags & MS_NODIRATIME) in audit_mnt_flags()
51 if (flags & MS_BIND) in audit_mnt_flags()
52 audit_log_format(ab, flags & MS_REC ? ", rbind" : ", bind"); in audit_mnt_flags()
53 if (flags & MS_MOVE) in audit_mnt_flags()
55 if (flags & MS_SILENT) in audit_mnt_flags()
57 if (flags & MS_POSIXACL) in audit_mnt_flags()
59 if (flags & MS_UNBINDABLE) in audit_mnt_flags()
60 audit_log_format(ab, flags & MS_REC ? ", runbindable" : in audit_mnt_flags()
62 if (flags & MS_PRIVATE) in audit_mnt_flags()
63 audit_log_format(ab, flags & MS_REC ? ", rprivate" : in audit_mnt_flags()
65 if (flags & MS_SLAVE) in audit_mnt_flags()
66 audit_log_format(ab, flags & MS_REC ? ", rslave" : in audit_mnt_flags()
68 if (flags & MS_SHARED) in audit_mnt_flags()
69 audit_log_format(ab, flags & MS_REC ? ", rshared" : in audit_mnt_flags()
71 if (flags & MS_RELATIME) in audit_mnt_flags()
73 if (flags & MS_I_VERSION) in audit_mnt_flags()
75 if (flags & MS_STRICTATIME) in audit_mnt_flags()
77 if (flags & MS_NOUSER) in audit_mnt_flags()
102 if (aad(sa)->mnt.flags) { in audit_cb()
103 audit_log_format(ab, " flags=\""); in audit_cb()
104 audit_mnt_flags(ab, aad(sa)->mnt.flags); in audit_cb()
121 * @flags: filesystem independent mount flags
122 * @data: filesystem mount flags
133 unsigned long flags, const void *data, u32 request, in audit_mount() argument
172 aad(&sa)->mnt.flags = flags; in audit_mount()
182 * match_mnt_flags - Do an ordered match on mount flags
185 * @flags: mount flags to match against
187 * Mount flags are encoded as an ordered match. This is done instead of
189 * on the flags.
191 * Returns: next state after flags match
194 unsigned long flags) in match_mnt_flags() argument
199 if ((1 << i) & flags) in match_mnt_flags()
211 "failed flags match",
222 const char *type, unsigned long flags, in do_match_mnt() argument
249 state = match_mnt_flags(policy->dfa, state, flags); in do_match_mnt()
256 /* only match data if not binary and the DFA flags data is expected */ in do_match_mnt()
270 /* failed at perms check, don't confuse with flags match */ in do_match_mnt()
291 * @flags: mount flags to match
301 unsigned long flags, void *data, bool binary, in match_mnt_path_str() argument
331 mntpnt, devname, type, flags, data, binary, &perms); in match_mnt_path_str()
340 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
351 * @flags: mount flags to match
359 const char *type, unsigned long flags, void *data, in match_mnt() argument
381 return match_mnt_path_str(profile, path, buffer, devname, type, flags, in match_mnt()
386 unsigned long flags, void *data) in aa_remount() argument
403 flags, data, binary)); in aa_remount()
410 const char *dev_name, unsigned long flags) in aa_bind_mount() argument
423 flags &= MS_REC | MS_BIND; in aa_bind_mount()
437 NULL, flags, NULL, false)); in aa_bind_mount()
447 unsigned long flags) in aa_mount_change_type() argument
456 /* These are the flags allowed by do_change_type() */ in aa_mount_change_type()
457 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
465 flags, NULL, false)); in aa_mount_change_type()
506 const struct path *path, const char *type, unsigned long flags, in aa_new_mount() argument
553 type, flags, data, binary)); in aa_new_mount()
557 type, flags, data, binary, NULL)); in aa_new_mount()
602 int aa_umount(struct aa_label *label, struct vfsmount *mnt, int flags) in aa_umount() argument