Home
last modified time | relevance | path

Searched refs:FORMAT_PROC_FD_PATH (Results 1 – 25 of 26) sorted by relevance

12

/systemd-251/src/shared/
Dsmack-util.c98 … 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()
Dselinux-util.c294 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()
Dcgroup-show.c137 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()
Dchown-recursive.c34 if (removexattr(FORMAT_PROC_FD_PATH(fd), n) < 0) in chown_one()
Dmount-util.c46 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()
Ddissect-image.c3093 src_fd >= 0 ? FORMAT_PROC_FD_PATH(src_fd) : src, in verity_dissect_and_mount()
/systemd-251/src/basic/
Dxattr-util.c90 … 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()
Dinotify-util.c11 wd = inotify_add_watch(fd, FORMAT_PROC_FD_PATH(what), mask); in inotify_add_watch_fd()
Dfd-util.h125 #define FORMAT_PROC_FD_PATH(fd) \ macro
Dfs-util.c292 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()
Dfd-util.c510 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()
Dnamespace-util.c94 r = files_same(FORMAT_PROC_FD_PATH(userns_fd), "/proc/self/ns/user", 0); in namespace_enter()
Dtmpfile-util.c314 … return RET_NERRNO(linkat(AT_FDCWD, FORMAT_PROC_FD_PATH(fd), AT_FDCWD, target, AT_SYMLINK_FOLLOW)); in link_tmpfile()
Drecurse-dir.c258 … subdir_fd = openat(AT_FDCWD, FORMAT_PROC_FD_PATH(inode_fd), O_DIRECTORY|O_CLOEXEC); in recurse_dir()
Dchase-symlinks.c479 d = opendir(FORMAT_PROC_FD_PATH(path_fd)); in chase_symlinks_and_opendir()
Dfileio.c792 r = sockaddr_un_set_path(&sa.un, FORMAT_PROC_FD_PATH(dfd)); in read_full_file_full()
/systemd-251/src/test/
Dtest-fd-util.c388 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()
Dtest-socket-util.c523 …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/
Dnspawn-patch-uid.c37 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/
Dfuzz-systemctl-parse-argv.c60 assert_se(freopen(FORMAT_PROC_FD_PATH(orig_stdout_fd), "w", stdout)); in LLVMFuzzerTestOneInput()
/systemd-251/src/fuzz/
Dfuzz-bootspec.c122 assert_se(freopen(FORMAT_PROC_FD_PATH(orig_stdout_fd), "w", stdout)); in LLVMFuzzerTestOneInput()
/systemd-251/src/journal/
Dmanaged-journal-file.c213 … 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/
Dtmpfiles.c1028 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/
Drepart.c1586 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/
Dsd-device.c2362 fd2 = open(FORMAT_PROC_FD_PATH(fd), flags); in sd_device_open()

12