Searched refs:node_fd (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/udev/ |
D | udev-node.c | 597 int node_fd, in udev_node_apply_permissions_impl() argument 609 assert(node_fd >= 0); in udev_node_apply_permissions_impl() 612 if (fstat(node_fd, &stats) < 0) in udev_node_apply_permissions_impl() 634 r = fchmod_and_chown(node_fd, mode, uid, gid); in udev_node_apply_permissions_impl() 657 q = mac_selinux_apply_fd(node_fd, devnode, label); in udev_node_apply_permissions_impl() 667 q = mac_smack_apply_fd(node_fd, SMACK_ATTR_ACCESS, label); in udev_node_apply_permissions_impl() 680 (void) mac_selinux_fix_fd(node_fd, devnode, LABEL_IGNORE_ENOENT); in udev_node_apply_permissions_impl() 682 (void) mac_smack_apply_fd(node_fd, SMACK_ATTR_ACCESS, NULL); in udev_node_apply_permissions_impl() 686 r = futimens_opath(node_fd, NULL); in udev_node_apply_permissions_impl() 702 _cleanup_close_ int node_fd = -1; in udev_node_apply_permissions() local [all …]
|
/systemd-251/src/shared/ |
D | dissect-image.c | 1263 _cleanup_close_ int mount_fd = -1, node_fd = -1; in fs_grow() local 1267 node_fd = open(node_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY); in fs_grow() 1268 if (node_fd < 0) in fs_grow() 1271 if (ioctl(node_fd, BLKGETSIZE64, &size) != 0) in fs_grow()
|