Lines Matching refs:devnode
162 const char *devnode; in link_find_prioritized() local
164 devnode = udev_device_get_devnode(dev_db); in link_find_prioritized()
165 if (devnode != NULL) { in link_find_prioritized()
170 strscpy(buf, bufsize, devnode); in link_find_prioritized()
255 const char *devnode = udev_device_get_devnode(dev); in node_permissions_apply() local
266 if (lstat(devnode, &stats) != 0) { in node_permissions_apply()
268 log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode); in node_permissions_apply()
284 … log_debug("set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); in node_permissions_apply()
285 err = chmod(devnode, mode); in node_permissions_apply()
287 … log_warning_errno(errno, "setting mode of %s to %#o failed: %m", devnode, mode); in node_permissions_apply()
288 err = chown(devnode, uid, gid); in node_permissions_apply()
290 … log_warning_errno(errno, "setting owner of %s to uid=%u, gid=%u failed: %m", devnode, uid, gid); in node_permissions_apply()
292 … log_debug("preserve permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); in node_permissions_apply()
306 r = mac_selinux_apply(devnode, label); in node_permissions_apply()
315 r = mac_smack_apply(devnode, label); in node_permissions_apply()
327 mac_selinux_fix(devnode, true, false); in node_permissions_apply()
329 mac_smack_apply(devnode, NULL); in node_permissions_apply()
333 utimensat(AT_FDCWD, devnode, NULL, 0); in node_permissions_apply()