Home
last modified time | relevance | path

Searched refs:umask (Results 1 – 25 of 93) sorted by relevance

1234

/linux-6.6.21/kernel/
Dcompat.c193 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++, Efault); in compat_put_bitmap()
/linux-6.6.21/fs/
Dfs_struct.c121 fs->umask = old->umask; in copy_fs_struct()
158 return current->fs->umask; in current_umask()
167 .umask = 0022,
/linux-6.6.21/Documentation/arch/x86/
Dtlb.rst68 cpu/event=0x8,umask=0x84,name=dtlb_load_misses_walk_duration/,
69 cpu/event=0x8,umask=0x82,name=dtlb_load_misses_walk_completed/,
70 cpu/event=0x49,umask=0x4,name=dtlb_store_misses_walk_duration/,
71 cpu/event=0x49,umask=0x2,name=dtlb_store_misses_walk_completed/,
72 cpu/event=0x85,umask=0x4,name=itlb_misses_walk_duration/,
73 cpu/event=0x85,umask=0x2,name=itlb_misses_walk_completed/
/linux-6.6.21/fs/hpfs/
Dsuper.c313 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()
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()
548 umode_t umask; in hpfs_fill_super() local
568 umask = current_umask(); in hpfs_fill_super()
576 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super()
627 sbi->sb_mode = 0777 & ~umask; in hpfs_fill_super()
/linux-6.6.21/net/netfilter/
Dxt_ipvs.c34 const union nf_inet_addr *umask, in ipvs_mt_addrcmp() argument
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()
Dxt_conntrack.c28 const union nf_inet_addr *umask, unsigned int l3proto) in conntrack_addrcmp() argument
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()
/linux-6.6.21/Documentation/filesystems/
Dhfsplus.rst26 umask=n
27 Specifies the umask (in octal) used for files and directories
29 Default: umask of the mounting process.
Domfs.rst39 umask=xxx set permission umask to xxx
40 fmask=xxx set umask to xxx for files
41 dmask=xxx set umask to xxx for directories
Dhfs.rst32 dir_umask=n, file_umask=n, umask=n
33 Specifies the umask used for all files , all directories or all
34 files and directories. Defaults to the umask of the mounting process.
Disofs.rst12 umask=nnn The permission mask (see umask(1)) for the partition.
Dudf.rst28 umask= Set the default umask.
Dntfs3.rst55 * - umask=
60 - :rspan:`1` Instead of specifying umask which applies both to files and
Dvfat.rst27 **umask=###**
28 The permission mask (for files and directories, see *umask(1)*).
29 The default is the umask of current process.
33 The default is the umask of current process.
37 The default is the umask of current process.
/linux-6.6.21/fs/notify/fanotify/
Dfanotify_user.c1053 __u32 umask, int *destroy) in fanotify_mark_remove_from_mask() argument
1058 mask &= ~umask; 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() argument
1095 umask, &destroy_mark); in fanotify_remove_mark()
1111 unsigned int flags, __u32 umask) in fanotify_remove_vfsmount_mark() argument
1114 mask, flags, umask); in fanotify_remove_vfsmount_mark()
1119 unsigned int flags, __u32 umask) in fanotify_remove_sb_mark() argument
1122 flags, umask); in fanotify_remove_sb_mark()
1127 unsigned int flags, __u32 umask) in fanotify_remove_inode_mark() argument
[all …]
/linux-6.6.21/fs/hfsplus/
Doptions.c56 opts->umask = current_umask(); in hfsplus_fill_defaults()
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()
/linux-6.6.21/fs/jfs/
Dsuper.c362 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()
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()
/linux-6.6.21/include/linux/
Dfs_struct.h13 int umask; member
/linux-6.6.21/Documentation/admin-guide/
Djfs.rst47 umask=value
48 Override on-disk umask with specified octal value. For
/linux-6.6.21/tools/testing/selftests/resctrl/
Dresctrl_val.c56 __u64 umask; member
76 imc_counters_config[i][j].umask << 8 | in membw_initialize_perf_event_attr()
124 imc_counters_config[count][READ].umask = in get_event_and_umask()
127 imc_counters_config[count][WRITE].umask = in get_event_and_umask()
/linux-6.6.21/arch/x86/kvm/
Dpmu.c307 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()
/linux-6.6.21/fs/proc/
Darray.c153 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()
/linux-6.6.21/arch/x86/events/zhaoxin/
Dcore.c438 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()
/linux-6.6.21/arch/ia64/kernel/
Dptrace.c253 unsigned long umask = 0, mask, m; in get_rnat() local
281 umask = MASK(ia64_rse_slot_num(ubspstore)) & mask; in get_rnat()
282 urnat = (pt->ar_rnat & umask); in get_rnat()
283 mask &= ~umask; in get_rnat()
312 unsigned long rnat0 = 0, rnat1 = 0, *slot0_kaddr, umask = 0, mask, m; in put_rnat() local
355 umask = MASK(ia64_rse_slot_num(ubspstore)) & mask; in put_rnat()
356 pt->ar_rnat = (pt->ar_rnat & ~umask) | (urnat & umask); in put_rnat()
357 mask &= ~umask; in put_rnat()
/linux-6.6.21/include/uapi/linux/
Dfuse.h707 uint32_t umask; member
713 uint32_t umask; member
757 uint32_t umask; member
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c1088 .umask = 0x10); in measure_l2_residency()
1090 .umask = 0x2); in measure_l2_residency()
1127 .umask = 0x4f); in measure_l3_residency()
1129 .umask = 0x41); in measure_l3_residency()

1234