Lines Matching refs:flags

34 				 r->param.mount.flags);  in tomoyo_audit_mount_log()
50 return tomoyo_compare_number_union(r->param.mount.flags, in tomoyo_check_mount_acl()
51 &acl->flags) && in tomoyo_check_mount_acl()
77 unsigned long flags) in tomoyo_mount_acl() argument
159 r->param.mount.flags = flags; in tomoyo_mount_acl()
188 const char *type, unsigned long flags, in tomoyo_mount_permission() argument
198 if ((flags & MS_MGC_MSK) == MS_MGC_VAL) in tomoyo_mount_permission()
199 flags &= ~MS_MGC_MSK; in tomoyo_mount_permission()
200 if (flags & MS_REMOUNT) { in tomoyo_mount_permission()
202 flags &= ~MS_REMOUNT; in tomoyo_mount_permission()
203 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
205 flags &= ~MS_BIND; in tomoyo_mount_permission()
206 } else if (flags & MS_SHARED) { in tomoyo_mount_permission()
207 if (flags & (MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission()
210 flags &= ~MS_SHARED; in tomoyo_mount_permission()
211 } else if (flags & MS_PRIVATE) { in tomoyo_mount_permission()
212 if (flags & (MS_SHARED | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission()
215 flags &= ~MS_PRIVATE; in tomoyo_mount_permission()
216 } else if (flags & MS_SLAVE) { in tomoyo_mount_permission()
217 if (flags & (MS_SHARED | MS_PRIVATE | MS_UNBINDABLE)) in tomoyo_mount_permission()
220 flags &= ~MS_SLAVE; in tomoyo_mount_permission()
221 } else if (flags & MS_UNBINDABLE) { in tomoyo_mount_permission()
222 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE)) in tomoyo_mount_permission()
225 flags &= ~MS_UNBINDABLE; in tomoyo_mount_permission()
226 } else if (flags & MS_MOVE) { in tomoyo_mount_permission()
228 flags &= ~MS_MOVE; in tomoyo_mount_permission()
233 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()