Lines Matching defs:flags
494 unsigned long flags, bool in_atomic)
507 if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE))
516 unsigned long prot, unsigned long flags)
518 return common_mmap(OP_FMMAP, file, prot, flags, GFP_ATOMIC);
530 const char *type, unsigned long flags, void *data)
536 if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
537 flags &= ~MS_MGC_MSK;
539 flags &= ~AA_MS_IGNORE_MASK;
543 if (flags & MS_REMOUNT)
544 error = aa_remount(label, path, flags, data);
545 else if (flags & MS_BIND)
546 error = aa_bind_mount(label, path, dev_name, flags);
547 else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE |
549 error = aa_mount_change_type(label, path, flags);
550 else if (flags & MS_MOVE)
554 flags, data);
561 static int apparmor_sb_umount(struct vfsmount *mnt, int flags)
568 error = aa_umount(label, mnt, flags);
772 static int apparmor_sk_alloc_security(struct sock *sk, int family, gfp_t flags)
776 ctx = kzalloc(sizeof(*ctx), flags);
961 struct msghdr *msg, int size, int flags)
1277 .flags = KERNEL_PARAM_OPS_FL_NOARG,
1304 .flags = KERNEL_PARAM_OPS_FL_NOARG,
1593 gfp_t flags = (GFP_KERNEL | __GFP_RETRY_MAYFAIL | __GFP_NOWARN);
1612 flags = GFP_ATOMIC;
1618 aa_buf = kmalloc(aa_g_path_max, flags);
1905 .flags = LSM_FLAG_LEGACY_MAJOR | LSM_FLAG_EXCLUSIVE,