Home
last modified time | relevance | path

Searched refs:access (Results 1 – 25 of 175) sorted by relevance

1234567

/systemd-251/src/core/
Dbpf-devices.c49 int r, access; in bpf_prog_allow_list_device() local
56 access = bpf_access_type(acc); in bpf_prog_allow_list_device()
57 if (access <= 0) in bpf_prog_allow_list_device()
65 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_device()
74 if (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD)) in bpf_prog_allow_list_device()
90 int r, access; in bpf_prog_allow_list_major() local
97 access = bpf_access_type(acc); in bpf_prog_allow_list_major()
98 if (access <= 0) in bpf_prog_allow_list_major()
106 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_major()
114 if (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD)) in bpf_prog_allow_list_major()
[all …]
Dima-setup.c30 if (access(IMA_SECFS_DIR, F_OK) < 0) { in ima_setup()
35 if (access(IMA_SECFS_POLICY, W_OK) < 0) { in ima_setup()
40 if (access(IMA_POLICY_PATH, F_OK) < 0) { in ima_setup()
/systemd-251/src/basic/
Dvirt.c104 if (access("/proc/device-tree/ibm,partition-name", F_OK) == 0 && in detect_vm_device_tree()
105 access("/proc/device-tree/hmc-managed?", F_OK) == 0 && in detect_vm_device_tree()
106 access("/proc/device-tree/chosen/qemu,graphic-width", F_OK) != 0) in detect_vm_device_tree()
339 if (access("/proc/xen", F_OK) < 0) { in detect_vm_xen()
560 r = access("/sys/fs/cgroup/cgroup.events", F_OK); in running_in_cgroupns()
571 r = access("/sys/fs/cgroup/cgroup.type", F_OK); in running_in_cgroupns()
578 r = access("/sys/kernel/cgroup/features", F_OK); in running_in_cgroupns()
594 r = access("/sys/fs/cgroup/systemd", F_OK); in running_in_cgroupns()
602 r = access("/sys/fs/cgroup/systemd/release_agent", F_OK); in running_in_cgroupns()
627 if (access(container_file_table[i].file_path, F_OK) >= 0) in detect_container_files()
[all …]
Defivars.c54 if (access(p, R_OK) < 0) in efi_get_variable()
282 cache = access("/sys/firmware/efi/", F_OK) >= 0; in is_efi_boot()
367 if (access(EFIVAR_PATH(EFI_SYSTEMD_VARIABLE(SystemdOptions)), F_OK) < 0) in read_efi_options_variable()
Dlogin-util.h19 return access("/run/systemd/seats/", F_OK) >= 0; in logind_running()
/systemd-251/src/test/
Dtest-rm-rf.c31 assert_se(access(d, F_OK) >= 0); in test_rm_rf_chmod_inner()
32 assert_se(access(x, F_OK) >= 0); in test_rm_rf_chmod_inner()
33 assert_se(access(y, F_OK) >= 0); in test_rm_rf_chmod_inner()
38 assert_se(access(d, F_OK) < 0 && errno == ENOENT); in test_rm_rf_chmod_inner()
Dtest-exec-util.c119 if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno)) in test_execute_directory_one()
128 assert_se(access("it_works", F_OK) >= 0); in test_execute_directory_one()
129 assert_se(access("failed", F_OK) < 0); in test_execute_directory_one()
132 assert_se(access("it_works2", F_OK) >= 0); in test_execute_directory_one()
133 assert_se(access("failed", F_OK) < 0); in test_execute_directory_one()
192 if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno)) in TEST()
273 if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno)) in TEST()
342 if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno)) in TEST()
405 if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno)) in TEST()
Dtest-seccomp.c732 assert_se(access("/", F_OK) >= 0); in TEST()
741 assert_se(access("/", F_OK) >= 0); in TEST()
744 assert_se(access("/", F_OK) >= 0); in TEST()
770 assert_se(access("/", F_OK) >= 0); in TEST()
774 assert_se(access("/", F_OK) >= 0); in TEST()
794 assert_se(access("/", F_OK) < 0); in TEST()
812 assert_se(access("/", F_OK) < 0); in TEST()
834 assert_se(access("/", F_OK) < 0); in TEST()
853 assert_se(access("/", F_OK) < 0); in TEST()
890 assert_se(access("/", F_OK) >= 0); in TEST()
[all …]
Dtest-fs-util.c721 if (access(x, F_OK) < 0) { in TEST()
732 if (access(w, F_OK) < 0) { in TEST()
815 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
820 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
825 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
831 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
836 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
842 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
848 assert_se(access(q, F_OK) < 0 && errno == ENOENT); in TEST()
877 assert_se(access(e, F_OK) >= 0); in test_rmdir_parents_one()
[all …]
Dtest-path.c320 assert_se(access(test_path, F_OK) < 0); in test_path_directorynotempty()
327 assert_se(access(test_path, F_OK) < 0); in test_path_directorynotempty()
357 assert_se(access(test_path, F_OK) < 0); in test_path_makedirectory_directorymode()
362 assert_se(access(test_path, F_OK) >= 0); in test_path_makedirectory_directorymode()
/systemd-251/src/quotacheck/
Dquotacheck.c51 if (access("/forcequotacheck", F_OK) >= 0) { in test_files()
79 if (access("/run/systemd/quotacheck", F_OK) < 0) in run()
/systemd-251/src/rpm/
Dtriggers.systemd.in105 if posix.access("/run/systemd/system") then
118 if posix.access("/run/systemd/system") then
130 if posix.access("/run/systemd/system") then
142 if posix.access("/run/systemd/system") then
/systemd-251/tools/
Dupdate-dbus-docs.py94 access = elem.get('access')
107 access = ACCESS_MAP.get(access, access)
/systemd-251/src/shared/
Dblockdev-util.c29 if (access(p, F_OK) >= 0) { in block_get_whole_disk()
38 if (access(p, F_OK) < 0) in block_get_whole_disk()
53 if (access(p, F_OK) < 0) in block_get_whole_disk()
Dtomoyo-util.c11 cached_use = (access("/sys/kernel/security/tomoyo/version", in mac_tomoyo_use()
Dima-util.c12 use_ima_cached = access("/sys/kernel/security/ima/", F_OK) >= 0; in use_ima()
Dtests.c83 if (access(dir, F_OK) < 0) in get_testdata_dir()
103 if (access(env, F_OK) < 0) { in get_catalog_dir()
/systemd-251/docs/
DTEMPORARY_DIRECTORIES.md99 operate on open, and only access the files through them. This way it doesn't
101 you have the file descriptor open you can still access the file for both
127 modification/access times, as extracted files are otherwise immediately
134 4. Keep the access time of all temporary files created current. In regular
135 intervals, use `utimensat()` or a related call to update the access time
137 looks at the access time of files when deciding whether to delete them, it's
138 sufficient to update their access times in sufficiently frequent intervals to
140 `ls`) primarily care for the modification time (rather than the access time)
141 using the access time for this purpose should be acceptable.
DBLOCK_DEVICE_LOCKING.md12 device nodes to synchronize access for partitioning and file system formatting
61 Besides synchronizing block device access between `systemd-udevd` and such
62 tools this scheme may also be used to synchronize access between those tools
67 Note that the file locks follow the usual access semantics of BSD locks: since
/systemd-251/src/fsck/
Dfsck.c126 if (access("/fastboot", F_OK) >= 0) { in test_files()
131 if (access("/forcefsck", F_OK) >= 0) { in test_files()
137 arg_show_progress = access("/run/systemd/show-status", F_OK) >= 0; in test_files()
/systemd-251/units/
Dsystemd-journald.service.in44 # In case you're wondering why CAP_SYS_PTRACE is needed, access to
49 # If there are many split up journal files we need a lot of fds to access them
Dsystemd-nspawn@.service.in38 # nspawn itself needs access to /dev/loop-control and /dev/loop, to implement
45 # access to /dev/mapper/control and the block devices /dev/mapper/*.
/systemd-251/
D.mailmap183 Tobias Klauser <tklauser@access.unizh.ch>
184 Tobias Klauser <tklauser@access.unizh.ch> <klauser@access.unizh.ch>
185 Tobias Klauser <tklauser@access.unizh.ch> <tklauser@access.unizh.chbk>
186 Tobias Klauser <tklauser@access.unizh.ch> <tklauser@distanz.ch>
/systemd-251/test/fuzz/fuzz-nspawn-oci/
Dcrash-bffbd2085d4e95c47e9749b3f4a2dbc0580c20d32 "linux": {"devices": [ { "access": "mmmw;r"}
/systemd-251/src/locale/
Dkeymap-util.c551 uncompressed = access(p, F_OK) == 0; in find_converted_keymap()
552 if (uncompressed || access(pz, F_OK) == 0) { in find_converted_keymap()
739 if (access(LOCALEGEN_PATH, X_OK) < 0) { in locale_gen_check_available()
744 if (access("/etc/locale.gen", F_OK) < 0) { in locale_gen_check_available()

1234567