Home
last modified time | relevance | path

Searched refs:path_beneath (Results 1 – 1 of 1) sorted by relevance

/samples/landlock/
Dsandboxer.c89 struct landlock_path_beneath_attr path_beneath = { in populate_ruleset() local
114 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset()
115 if (path_beneath.parent_fd < 0) { in populate_ruleset()
120 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset()
121 close(path_beneath.parent_fd); in populate_ruleset()
124 path_beneath.allowed_access = allowed_access; in populate_ruleset()
126 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset()
128 &path_beneath, 0)) { in populate_ruleset()
132 close(path_beneath.parent_fd); in populate_ruleset()
135 close(path_beneath.parent_fd); in populate_ruleset()