/kernel/linux/linux-5.10/kernel/ |
H A D | compat.c | 193 long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask, in compat_get_bitmap() argument 202 if (!user_read_access_begin(umask, bitmap_size / 8)) in compat_get_bitmap() 207 unsafe_get_user(l1, umask++, Efault); in compat_get_bitmap() 208 unsafe_get_user(l2, umask++, Efault); in compat_get_bitmap() 213 unsafe_get_user(*mask, umask++, Efault); in compat_get_bitmap() 222 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, in compat_put_bitmap() argument 231 if (!user_write_access_begin(umask, bitmap_size / 8)) in compat_put_bitmap() 236 unsafe_put_user((compat_ulong_t)m, umask++, Efault); in compat_put_bitmap() 237 unsafe_put_user(m >> BITS_PER_COMPAT_LONG, umask++, Efault); in compat_put_bitmap() 241 unsafe_put_user((compat_ulong_t)*mask, umask in compat_put_bitmap() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | compat.c | 193 long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask, in compat_get_bitmap() argument 202 if (!user_read_access_begin(umask, bitmap_size / 8)) in compat_get_bitmap() 207 unsafe_get_user(l1, umask++, Efault); in compat_get_bitmap() 208 unsafe_get_user(l2, umask++, Efault); in compat_get_bitmap() 213 unsafe_get_user(*mask, umask++, Efault); in compat_get_bitmap() 222 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, in compat_put_bitmap() argument 231 if (!user_write_access_begin(umask, bitmap_size / 8)) in compat_put_bitmap() 236 unsafe_put_user((compat_ulong_t)m, umask++, Efault); in compat_put_bitmap() 237 unsafe_put_user(m >> BITS_PER_COMPAT_LONG, umask++, Efault); in compat_put_bitmap() 241 unsafe_put_user((compat_ulong_t)*mask, umask in compat_put_bitmap() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | fs_struct.c | 121 fs->umask = old->umask; in copy_fs_struct() 158 return current->fs->umask; in current_umask() 167 .umask = 0022,
|
/kernel/linux/linux-6.6/fs/ |
H A D | fs_struct.c | 121 fs->umask = old->umask; in copy_fs_struct() 158 return current->fs->umask; in current_umask() 167 .umask = 0022,
|
/kernel/linux/linux-5.10/fs/hpfs/ |
H A D | super.c | 294 {Opt_umask, "umask=%o"}, 313 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 352 *umask = option; in parse_opts() 423 umask=xxx set mode of files that don't have mode specified in eas\n\ in hpfs_help() 446 umode_t umask; in hpfs_remount_fs() local 457 umask = 0777 & ~sbi->sb_mode; in hpfs_remount_fs() 462 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 479 sbi->sb_mode = 0777 & ~umask; in hpfs_remount_fs() 500 seq_printf(seq, ",umask=%03o", (~sbi->sb_mode & 0777)); in hpfs_show_options() 548 umode_t umask; in hpfs_fill_super() local [all...] |
/kernel/linux/linux-6.6/fs/hpfs/ |
H A D | super.c | 294 {Opt_umask, "umask=%o"}, 313 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 352 *umask = option; in parse_opts() 423 umask=xxx set mode of files that don't have mode specified in eas\n\ in hpfs_help() 446 umode_t umask; in hpfs_remount_fs() local 457 umask = 0777 & ~sbi->sb_mode; in hpfs_remount_fs() 462 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 479 sbi->sb_mode = 0777 & ~umask; in hpfs_remount_fs() 500 seq_printf(seq, ",umask=%03o", (~sbi->sb_mode & 0777)); in hpfs_show_options() 548 umode_t umask; in hpfs_fill_super() local [all...] |
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify_user.c | 721 __u32 umask, int *destroy) in fanotify_mark_remove_from_mask() 725 /* umask bits cannot be removed by user */ in fanotify_mark_remove_from_mask() 726 mask &= ~umask; in fanotify_mark_remove_from_mask() 738 * Destroy mark when only umask bits remain. in fanotify_mark_remove_from_mask() 740 *destroy = !((fsn_mark->mask | fsn_mark->ignored_mask) & ~umask); in fanotify_mark_remove_from_mask() 748 unsigned int flags, __u32 umask) in fanotify_remove_mark() 762 umask, &destroy_mark); in fanotify_remove_mark() 778 unsigned int flags, __u32 umask) in fanotify_remove_vfsmount_mark() 781 mask, flags, umask); in fanotify_remove_vfsmount_mark() 786 unsigned int flags, __u32 umask) in fanotify_remove_sb_mark() 719 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, __u32 mask, unsigned int flags, __u32 umask, int *destroy) fanotify_mark_remove_from_mask() argument 746 fanotify_remove_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_mark() argument 776 fanotify_remove_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_vfsmount_mark() argument 784 fanotify_remove_sb_mark(struct fsnotify_group *group, struct super_block *sb, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_sb_mark() argument 792 fanotify_remove_inode_mark(struct fsnotify_group *group, struct inode *inode, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_inode_mark() argument 1140 u32 umask = 0; do_fanotify_mark() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_ipvs.c | 34 const union nf_inet_addr *umask, in ipvs_mt_addrcmp() 38 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in ipvs_mt_addrcmp() 41 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp() 32 ipvs_mt_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) ipvs_mt_addrcmp() argument
|
H A D | xt_conntrack.c | 28 const union nf_inet_addr *umask, unsigned int l3proto) in conntrack_addrcmp() 31 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp() 33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp() 26 conntrack_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) conntrack_addrcmp() argument
|
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | options.c | 34 { opt_umask, "umask=%o" }, 56 opts->umask = current_umask(); in hfsplus_fill_defaults() 129 pr_err("umask requires a value\n"); in hfsplus_parse_options() 132 sbi->umask = (umode_t)tmp; in hfsplus_parse_options() 229 seq_printf(seq, ",umask=%o,uid=%u,gid=%u", sbi->umask, in hfsplus_show_options()
|
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | options.c | 34 { opt_umask, "umask=%o" }, 56 opts->umask = current_umask(); in hfsplus_fill_defaults() 129 pr_err("umask requires a value\n"); in hfsplus_parse_options() 132 sbi->umask = (umode_t)tmp; in hfsplus_parse_options() 229 seq_printf(seq, ",umask=%o,uid=%u,gid=%u", sbi->umask, in hfsplus_show_options()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_ipvs.c | 34 const union nf_inet_addr *umask, in ipvs_mt_addrcmp() 38 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in ipvs_mt_addrcmp() 41 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp() 32 ipvs_mt_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) ipvs_mt_addrcmp() argument
|
H A D | xt_conntrack.c | 28 const union nf_inet_addr *umask, unsigned int l3proto) in conntrack_addrcmp() 31 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp() 33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp() 26 conntrack_addrcmp(const union nf_inet_addr *kaddr, const union nf_inet_addr *uaddr, const union nf_inet_addr *umask, unsigned int l3proto) conntrack_addrcmp() argument
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify_user.c | 1053 __u32 umask, int *destroy) in fanotify_mark_remove_from_mask() 1057 /* umask bits cannot be removed by user */ in fanotify_mark_remove_from_mask() 1058 mask &= ~umask; in fanotify_mark_remove_from_mask() 1071 * Destroy mark when only umask bits remain. in fanotify_mark_remove_from_mask() 1073 *destroy = !((fsn_mark->mask | fsn_mark->ignore_mask) & ~umask); in fanotify_mark_remove_from_mask() 1081 unsigned int flags, __u32 umask) in fanotify_remove_mark() 1095 umask, &destroy_mark); in fanotify_remove_mark() 1111 unsigned int flags, __u32 umask) in fanotify_remove_vfsmount_mark() 1114 mask, flags, umask); in fanotify_remove_vfsmount_mark() 1119 unsigned int flags, __u32 umask) in fanotify_remove_sb_mark() 1051 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, __u32 mask, unsigned int flags, __u32 umask, int *destroy) fanotify_mark_remove_from_mask() argument 1079 fanotify_remove_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_mark() argument 1109 fanotify_remove_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_vfsmount_mark() argument 1117 fanotify_remove_sb_mark(struct fsnotify_group *group, struct super_block *sb, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_sb_mark() argument 1125 fanotify_remove_inode_mark(struct fsnotify_group *group, struct inode *inode, __u32 mask, unsigned int flags, __u32 umask) fanotify_remove_inode_mark() argument 1674 u32 umask = 0; do_fanotify_mark() local [all...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_other.c | 745 return OsCurrProcessGet()->umask; in GetUmask() 751 mode_t umask; in SysUmask() local 753 umask = mask & UMASK_FULL; in SysUmask() 755 oldUmask = OsCurrProcessGet()->umask; in SysUmask() 756 OsCurrProcessGet()->umask = umask; in SysUmask()
|
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | super.c | 226 {Opt_umask, "umask=%u"}, 363 char *umask = args[0].from; in parse_options() local 364 int rc = kstrtouint(umask, 8, &sbi->umask); in parse_options() 368 if (sbi->umask & ~0777) { in parse_options() 369 pr_err("JFS: Invalid value of umask\n"); in parse_options() 511 sbi->umask = -1; in jfs_fill_super() 705 if (sbi->umask != -1) in jfs_show_options() 706 seq_printf(seq, ",umask=%03o", sbi->umask); in jfs_show_options() [all...] |
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | super.c | 226 {Opt_umask, "umask=%u"}, 362 char *umask = args[0].from; in parse_options() local 363 int rc = kstrtouint(umask, 8, &sbi->umask); in parse_options() 367 if (sbi->umask & ~0777) { in parse_options() 368 pr_err("JFS: Invalid value of umask\n"); in parse_options() 506 sbi->umask = -1; in jfs_fill_super() 699 if (sbi->umask != -1) in jfs_show_options() 700 seq_printf(seq, ",umask=%03o", sbi->umask); in jfs_show_options() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 56 __u64 umask; member 76 imc_counters_config[i][j].umask << 8 | in membw_initialize_perf_event_attr() 95 * get_event_and_umask: Parse config into event and umask 122 if (strcmp(token[i], "umask") == 0) { in get_event_and_umask() 124 imc_counters_config[count][READ].umask = in get_event_and_umask() 127 imc_counters_config[count][WRITE].umask = in get_event_and_umask() 217 * A config again has two parts, event and umask.
|
/kernel/linux/linux-6.6/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 56 __u64 umask; member 76 imc_counters_config[i][j].umask << 8 | in membw_initialize_perf_event_attr() 95 * get_event_and_umask: Parse config into event and umask 122 if (strcmp(token[i], "umask") == 0) { in get_event_and_umask() 124 imc_counters_config[count][READ].umask = in get_event_and_umask() 127 imc_counters_config[count][WRITE].umask = in get_event_and_umask() 217 * A config again has two parts, event and umask.
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | fs_struct.h | 13 int umask; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fs_struct.h | 13 int umask; member
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | array.c | 156 int g, umask = -1; in task_state() local 176 umask = p->fs->umask; in task_state() 182 if (umask >= 0) in task_state() 183 seq_printf(m, "Umask:\t%#04o\n", umask); in task_state()
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | array.c | 153 int g, umask = -1; in task_state() local 173 umask = p->fs->umask; in task_state() 179 if (umask >= 0) in task_state() 180 seq_printf(m, "Umask:\t%#04o\n", umask); in task_state()
|
/kernel/linux/linux-6.6/arch/x86/kvm/ |
H A D | pmu.c | 307 static bool is_filter_entry_match(u64 filter_event, u64 umask) in is_filter_entry_match() argument 316 return (umask & mask) == match; in is_filter_entry_match() 322 u64 umask = eventsel & ARCH_PERFMON_EVENTSEL_UMASK; in filter_contains_match() local 337 if (is_filter_entry_match(events[i], umask)) in filter_contains_match() 345 if (is_filter_entry_match(events[i], umask)) in filter_contains_match()
|
/kernel/linux/linux-5.10/arch/x86/events/zhaoxin/ |
H A D | core.c | 438 PMU_FORMAT_ATTR(umask, "config:8-15"); 570 X86_CONFIG(.event = 0x01, .umask = 0x01, .inv = 0x01, .cmask = 0x01); in zhaoxin_pmu_init() 573 X86_CONFIG(.event = 0x0f, .umask = 0x04, .inv = 0, .cmask = 0); in zhaoxin_pmu_init()
|