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_NOSYMFOLLOW) in audit_mnt_flags()
49 if (flags & MS_NOATIME) in audit_mnt_flags()
51 if (flags & MS_NODIRATIME) in audit_mnt_flags()
53 if (flags & MS_BIND) in audit_mnt_flags()
54 audit_log_format(ab, flags & MS_REC ? ", rbind" : ", bind"); in audit_mnt_flags()
55 if (flags & MS_MOVE) in audit_mnt_flags()
57 if (flags & MS_SILENT) in audit_mnt_flags()
59 if (flags & MS_POSIXACL) in audit_mnt_flags()
61 if (flags & MS_UNBINDABLE) in audit_mnt_flags()
62 audit_log_format(ab, flags & MS_REC ? ", runbindable" : in audit_mnt_flags()
64 if (flags & MS_PRIVATE) in audit_mnt_flags()
65 audit_log_format(ab, flags & MS_REC ? ", rprivate" : in audit_mnt_flags()
67 if (flags & MS_SLAVE) in audit_mnt_flags()
68 audit_log_format(ab, flags & MS_REC ? ", rslave" : in audit_mnt_flags()
70 if (flags & MS_SHARED) in audit_mnt_flags()
71 audit_log_format(ab, flags & MS_REC ? ", rshared" : in audit_mnt_flags()
73 if (flags & MS_RELATIME) in audit_mnt_flags()
75 if (flags & MS_I_VERSION) in audit_mnt_flags()
77 if (flags & MS_STRICTATIME) in audit_mnt_flags()
79 if (flags & MS_NOUSER) in audit_mnt_flags()
105 if (ad->mnt.flags) { in audit_cb()
106 audit_log_format(ab, " flags=\""); in audit_cb()
107 audit_mnt_flags(ab, ad->mnt.flags); in audit_cb()
125 * @flags: filesystem independent mount flags
126 * @data: filesystem mount flags
138 unsigned long flags, const void *data, u32 request, in audit_mount() argument
178 ad.mnt.flags = flags; in audit_mount()
188 * match_mnt_flags - Do an ordered match on mount flags
191 * @flags: mount flags to match against
193 * Mount flags are encoded as an ordered match. This is done instead of
195 * on the flags.
197 * Returns: next state after flags match
200 unsigned long flags) in match_mnt_flags() argument
205 if ((1 << i) & flags) in match_mnt_flags()
217 "failed flags match",
228 const char *type, unsigned long flags, in do_match_mnt() argument
255 state = match_mnt_flags(policy->dfa, state, flags); in do_match_mnt()
262 /* only match data if not binary and the DFA flags data is expected */ in do_match_mnt()
276 /* failed at perms check, don't confuse with flags match */ in do_match_mnt()
298 * @flags: mount flags to match
309 unsigned long flags, void *data, bool binary, in match_mnt_path_str() argument
338 mntpnt, devname, type, flags, data, binary, &perms); in match_mnt_path_str()
348 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
360 * @flags: mount flags to match
369 const char *type, unsigned long flags, void *data, in match_mnt() argument
391 type, flags, data, binary, info); in match_mnt()
396 unsigned long flags, void *data) in aa_remount() argument
414 flags, data, binary)); in aa_remount()
422 const char *dev_name, unsigned long flags) in aa_bind_mount() argument
435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
449 old_buffer, NULL, flags, NULL, false)); in aa_bind_mount()
460 unsigned long flags) in aa_mount_change_type() argument
469 /* These are the flags allowed by do_change_type() */ in aa_mount_change_type()
470 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
479 flags, NULL, false)); in aa_mount_change_type()
537 const char *type, unsigned long flags, void *data) in aa_new_mount() argument
584 type, flags, data, binary)); in aa_new_mount()
589 type, flags, data, binary, NULL)); in aa_new_mount()
636 struct vfsmount *mnt, int flags) in aa_umount() argument