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()
230 "failed flags match",
241 const char *type, unsigned long flags, in do_match_mnt() argument
266 state = match_mnt_flags(dfa, state, flags); in do_match_mnt()
273 /* only match data if not binary and the DFA flags data is expected */ in do_match_mnt()
287 /* failed at perms check, don't confuse with flags match */ in do_match_mnt()
308 * @flags: mount flags to match
318 unsigned long flags, void *data, bool binary, in match_mnt_path_str() argument
346 mntpnt, devname, type, flags, data, binary, &perms); in match_mnt_path_str()
355 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
366 * @flags: mount flags to match
374 const char *type, unsigned long flags, void *data, in match_mnt() argument
394 return match_mnt_path_str(profile, path, buffer, devname, type, flags, in match_mnt()
399 unsigned long flags, void *data) in aa_remount() argument
416 flags, data, binary)); in aa_remount()
423 const char *dev_name, unsigned long flags) in aa_bind_mount() argument
436 flags &= MS_REC | MS_BIND; in aa_bind_mount()
450 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()
478 flags, NULL, false)); in aa_mount_change_type()
519 const struct path *path, const char *type, unsigned long flags, in aa_new_mount() argument
566 type, flags, data, binary)); in aa_new_mount()
570 type, flags, data, binary, NULL)); in aa_new_mount()
613 int aa_umount(struct aa_label *label, struct vfsmount *mnt, int flags) in aa_umount() argument