mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-16 14:16:16 -06:00
fix private-dev
This commit is contained in:
parent
37bc54cef3
commit
b21763636a
1 changed files with 7 additions and 8 deletions
|
|
@ -141,16 +141,15 @@ errexit:
|
|||
}
|
||||
|
||||
static void create_link(const char *oldpath, const char *newpath) {
|
||||
if (symlink(oldpath, newpath) == -1)
|
||||
goto errexit;
|
||||
if (chown(newpath, 0, 0) < 0)
|
||||
goto errexit;
|
||||
if (symlink(oldpath, newpath) == -1) {
|
||||
fprintf(stderr, "Error: cannot create %s device\n", newpath);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (chown(newpath, 0, 0) < 0);
|
||||
|
||||
fs_logger2("create", newpath);
|
||||
return;
|
||||
|
||||
errexit:
|
||||
fprintf(stderr, "Error: cannot create %s device\n", newpath);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static void empty_dev_shm(void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue