Searched refs:ruleset_fd (Results 1 – 3 of 3) sorted by relevance
145 const int ruleset_fd = my_landlock_create_ruleset( in enable_landlock() local147 if (ruleset_fd < 0) in enable_landlock()162 if (my_landlock_restrict_self(ruleset_fd, 0) != 0) in enable_landlock()165 (void)close(ruleset_fd); in enable_landlock()
345 const int ruleset_fd = my_landlock_create_ruleset( in sandbox_enter()347 if (ruleset_fd < 0) in sandbox_enter()353 if (my_landlock_restrict_self(ruleset_fd, 0) != 0) in sandbox_enter()356 (void)close(ruleset_fd); in sandbox_enter()
179 my_landlock_restrict_self(int ruleset_fd, uint32_t flags) in my_landlock_restrict_self() argument181 return syscall(SYS_landlock_restrict_self, ruleset_fd, flags); in my_landlock_restrict_self()