/systemd-251/src/shared/ |
D | smack-util.c | 98 … r = setxattr(FORMAT_PROC_FD_PATH(fd), smack_attr_to_string(attr), label, strlen(label), 0); in mac_smack_apply_fd() 100 r = removexattr(FORMAT_PROC_FD_PATH(fd), smack_attr_to_string(attr)); in mac_smack_apply_fd() 155 if (setxattr(FORMAT_PROC_FD_PATH(fd), "security.SMACK64", label, strlen(label), 0) < 0) { in smack_fix_fd() 169 … if (lgetxattr_malloc(FORMAT_PROC_FD_PATH(fd), "security.SMACK64", &old_label) >= 0 && in smack_fix_fd()
|
D | selinux-util.c | 294 if (setfilecon_raw(FORMAT_PROC_FD_PATH(fd), fcon) < 0) { in mac_selinux_fix_container_fd() 308 if (getfilecon_raw(FORMAT_PROC_FD_PATH(fd), &oldcon) >= 0 && streq(fcon, oldcon)) in mac_selinux_fix_container_fd() 349 if (setfilecon(FORMAT_PROC_FD_PATH(fd), label) < 0) in mac_selinux_apply_fd()
|
D | cgroup-show.c | 137 r = getxattr_malloc(cgfd < 0 ? path : FORMAT_PROC_FD_PATH(cgfd), "trusted.delegate", &b); in is_delegated() 142 … r = getxattr_malloc(cgfd < 0 ? path : FORMAT_PROC_FD_PATH(cgfd), "user.delegate", &b); in is_delegated()
|
D | chown-recursive.c | 34 if (removexattr(FORMAT_PROC_FD_PATH(fd), n) < 0) in chown_one()
|
D | mount-util.c | 46 if (mount(source, FORMAT_PROC_FD_PATH(target_fd), filesystemtype, mountflags, data) < 0) { in mount_fd() 880 …r = mount_follow_verbose(LOG_DEBUG, FORMAT_PROC_FD_PATH(chased_src_fd), mount_tmp, NULL, MS_BIND, … in mount_in_namespace()
|
D | dissect-image.c | 3093 src_fd >= 0 ? FORMAT_PROC_FD_PATH(src_fd) : src, in verity_dissect_and_mount()
|
/systemd-251/src/basic/ |
D | xattr-util.c | 90 … n = by_procfs ? getxattr(FORMAT_PROC_FD_PATH(fd), name, v, l) : fgetxattr(fd, name, v, l); in getxattr_at_malloc() 111 … n = by_procfs ? getxattr(FORMAT_PROC_FD_PATH(fd), name, NULL, 0) : fgetxattr(fd, name, NULL, 0); in getxattr_at_malloc() 266 … n = by_procfs ? listxattr(FORMAT_PROC_FD_PATH(fd), v, l) : flistxattr(fd, v, l); in listxattr_at_malloc() 287 … n = by_procfs ? listxattr(FORMAT_PROC_FD_PATH(fd), NULL, 0) : flistxattr(fd, NULL, 0); in listxattr_at_malloc()
|
D | inotify-util.c | 11 wd = inotify_add_watch(fd, FORMAT_PROC_FD_PATH(what), mask); in inotify_add_watch_fd()
|
D | fd-util.h | 125 #define FORMAT_PROC_FD_PATH(fd) \ macro
|
D | fs-util.c | 292 if (chmod(FORMAT_PROC_FD_PATH(fd), m) < 0) { in fchmod_opath() 308 if (utimensat(AT_FDCWD, FORMAT_PROC_FD_PATH(fd), ts, 0) < 0) { in futimens_opath() 674 if (access(FORMAT_PROC_FD_PATH(fd), mode) < 0) { in access_fd()
|
D | fd-util.c | 510 r = readlink_malloc(FORMAT_PROC_FD_PATH(fd), ret); in fd_get_path() 739 new_fd = open(FORMAT_PROC_FD_PATH(fd), flags); in fd_reopen()
|
D | namespace-util.c | 94 r = files_same(FORMAT_PROC_FD_PATH(userns_fd), "/proc/self/ns/user", 0); in namespace_enter()
|
D | tmpfile-util.c | 314 … return RET_NERRNO(linkat(AT_FDCWD, FORMAT_PROC_FD_PATH(fd), AT_FDCWD, target, AT_SYMLINK_FOLLOW)); in link_tmpfile()
|
D | recurse-dir.c | 258 … subdir_fd = openat(AT_FDCWD, FORMAT_PROC_FD_PATH(inode_fd), O_DIRECTORY|O_CLOEXEC); in recurse_dir()
|
D | chase-symlinks.c | 479 d = opendir(FORMAT_PROC_FD_PATH(path_fd)); in chase_symlinks_and_opendir()
|
D | fileio.c | 792 r = sockaddr_un_set_path(&sa.un, FORMAT_PROC_FD_PATH(dfd)); in read_full_file_full()
|
/systemd-251/src/test/ |
D | test-fd-util.c | 388 assert_se(streq_ptr(FORMAT_PROC_FD_PATH(0), "/proc/self/fd/0")); in TEST() 389 assert_se(streq_ptr(FORMAT_PROC_FD_PATH(1), "/proc/self/fd/1")); in TEST() 390 assert_se(streq_ptr(FORMAT_PROC_FD_PATH(2), "/proc/self/fd/2")); in TEST() 391 assert_se(streq_ptr(FORMAT_PROC_FD_PATH(3), "/proc/self/fd/3")); in TEST() 392 assert_se(streq_ptr(FORMAT_PROC_FD_PATH(2147483647), "/proc/self/fd/2147483647")); in TEST()
|
D | test-socket-util.c | 523 …assert_se(sockaddr_un_set_path(&sa.un, FORMAT_PROC_FD_PATH(fd3)) >= 0); /* connect via O_PATH inst… in TEST()
|
/systemd-251/src/nspawn/ |
D | nspawn-patch-uid.c | 37 acl = acl_get_file(FORMAT_PROC_FD_PATH(child_fd), type); in get_acl() 41 acl = acl_get_file(FORMAT_PROC_FD_PATH(fd), type); in get_acl() 62 r = acl_set_file(FORMAT_PROC_FD_PATH(child_fd), type, acl); in set_acl() 66 r = acl_set_file(FORMAT_PROC_FD_PATH(fd), type, acl); in set_acl()
|
/systemd-251/src/systemctl/ |
D | fuzz-systemctl-parse-argv.c | 60 assert_se(freopen(FORMAT_PROC_FD_PATH(orig_stdout_fd), "w", stdout)); in LLVMFuzzerTestOneInput()
|
/systemd-251/src/fuzz/ |
D | fuzz-bootspec.c | 122 assert_se(freopen(FORMAT_PROC_FD_PATH(orig_stdout_fd), "w", stdout)); in LLVMFuzzerTestOneInput()
|
/systemd-251/src/journal/ |
D | managed-journal-file.c | 213 … r = copy_file_atomic(FORMAT_PROC_FD_PATH(f->file->fd), f->file->path, f->file->mode, in managed_journal_file_set_offline_internal()
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 1028 if (setxattr(FORMAT_PROC_FD_PATH(fd), *name, *value, strlen(*value), 0) < 0) in fd_set_xattrs() 1143 …r = path_set_acl(FORMAT_PROC_FD_PATH(fd), path, ACL_TYPE_ACCESS, item->acl_access, item->append_or… in fd_set_acls() 1147 …r = path_set_acl(FORMAT_PROC_FD_PATH(fd), path, ACL_TYPE_DEFAULT, item->acl_default, item->append_… in fd_set_acls() 1898 d = opendir(FORMAT_PROC_FD_PATH(fd)); in item_do() 1900 … log_error_errno(errno, "Failed to opendir() '%s': %m", FORMAT_PROC_FD_PATH(fd)); in item_do()
|
/systemd-251/src/partition/ |
D | repart.c | 1586 r = fdisk_assign_device(c, FORMAT_PROC_FD_PATH(*backing_fd), arg_dry_run); in context_load_partition_table() 4626 r = fdisk_assign_device(c, FORMAT_PROC_FD_PATH(fd), 0); in resize_pt() 4628 … return log_error_errno(r, "Failed to open device '%s': %m", FORMAT_PROC_FD_PATH(fd)); in resize_pt() 4632 …or_errno(r, "Failed to determine whether disk '%s' has a disk label: %m", FORMAT_PROC_FD_PATH(fd)); in resize_pt()
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 2362 fd2 = open(FORMAT_PROC_FD_PATH(fd), flags); in sd_device_open()
|