assert(prog);
assert(acc);
+ log_trace("%s: %c %d:%d %s", __func__, type, major, minor, acc);
+
access = bpf_access_type(acc);
if (access <= 0)
return -EINVAL;
assert(prog);
assert(acc);
+ log_trace("%s: %c %d:* %s", __func__, type, major, acc);
+
access = bpf_access_type(acc);
if (access <= 0)
return -EINVAL;
assert(prog);
assert(acc);
+ log_trace("%s: %c *:* %s", __func__, type, acc);
+
access = bpf_access_type(acc);
if (access <= 0)
return -EINVAL;
assert(acc);
assert(strlen(acc) <= 3);
+ log_trace("%s: %s %s", __func__, node, acc);
+
/* Some special handling for /dev/block/%u:%u, /dev/char/%u:%u, /run/systemd/inaccessible/chr and
* /run/systemd/inaccessible/blk paths. Instead of stat()ing these we parse out the major/minor directly. This
* means clients can use these path without the device node actually around */