Lines Matching refs:flags
36 r->param.mount.flags); in tomoyo_audit_mount_log()
53 return tomoyo_compare_number_union(r->param.mount.flags, in tomoyo_check_mount_acl()
54 &acl->flags) && in tomoyo_check_mount_acl()
80 unsigned long flags) in tomoyo_mount_acl() argument
163 r->param.mount.flags = flags; in tomoyo_mount_acl()
192 const char *type, unsigned long flags, in tomoyo_mount_permission() argument
202 if ((flags & MS_MGC_MSK) == MS_MGC_VAL) in tomoyo_mount_permission()
203 flags &= ~MS_MGC_MSK; in tomoyo_mount_permission()
204 if (flags & MS_REMOUNT) { in tomoyo_mount_permission()
206 flags &= ~MS_REMOUNT; in tomoyo_mount_permission()
207 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
209 flags &= ~MS_BIND; in tomoyo_mount_permission()
210 } else if (flags & MS_SHARED) { in tomoyo_mount_permission()
211 if (flags & (MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission()
214 flags &= ~MS_SHARED; in tomoyo_mount_permission()
215 } else if (flags & MS_PRIVATE) { in tomoyo_mount_permission()
216 if (flags & (MS_SHARED | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission()
219 flags &= ~MS_PRIVATE; in tomoyo_mount_permission()
220 } else if (flags & MS_SLAVE) { in tomoyo_mount_permission()
221 if (flags & (MS_SHARED | MS_PRIVATE | MS_UNBINDABLE)) in tomoyo_mount_permission()
224 flags &= ~MS_SLAVE; in tomoyo_mount_permission()
225 } else if (flags & MS_UNBINDABLE) { in tomoyo_mount_permission()
226 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE)) in tomoyo_mount_permission()
229 flags &= ~MS_UNBINDABLE; in tomoyo_mount_permission()
230 } else if (flags & MS_MOVE) { in tomoyo_mount_permission()
232 flags &= ~MS_MOVE; in tomoyo_mount_permission()
237 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()