firejail: add utmp patch
This commit is contained in:
parent
fe06081cad
commit
2efc5636a8
2 changed files with 26 additions and 1 deletions
25
srcpkgs/firejail/patches/utmp.patch
Normal file
25
srcpkgs/firejail/patches/utmp.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
commit ade4d64989e3fdf05c14be8c9ac034e6822c3ca5
|
||||||
|
Author: Duncaen <mail@duncano.de>
|
||||||
|
Date: Sat Dec 19 23:44:38 2015 +0100
|
||||||
|
|
||||||
|
use UTMP_FILE to check for its existence
|
||||||
|
|
||||||
|
diff --git src/firejail/fs_var.c src/firejail/fs_var.c
|
||||||
|
index c6f9892..7e643dd 100644
|
||||||
|
--- src/firejail/fs_var.c
|
||||||
|
+++ src/firejail/fs_var.c
|
||||||
|
@@ -304,7 +304,7 @@ void fs_var_utmp(void) {
|
||||||
|
|
||||||
|
// extract utmp group id
|
||||||
|
gid_t utmp_group = 0;
|
||||||
|
- if (stat("/var/run/utmp", &s) == 0)
|
||||||
|
+ if (stat(UTMP_FILE, &s) == 0)
|
||||||
|
utmp_group = s.st_gid;
|
||||||
|
else {
|
||||||
|
fprintf(stderr, "Warning: cannot find /var/run/utmp\n");
|
||||||
|
@@ -349,5 +349,3 @@ void fs_var_utmp(void) {
|
||||||
|
if (mount(UTMP_FILE, "/var/run/utmp", NULL, MS_BIND|MS_REC, NULL) < 0)
|
||||||
|
errExit("mount bind utmp");
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'firejail'
|
# Template file for 'firejail'
|
||||||
pkgname=firejail
|
pkgname=firejail
|
||||||
version=0.9.34
|
version=0.9.34
|
||||||
revision=5
|
revision=6
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
conf_files="/etc/firejail/*"
|
conf_files="/etc/firejail/*"
|
||||||
short_desc="SUID security sandbox program"
|
short_desc="SUID security sandbox program"
|
||||||
|
|
Loading…
Reference in a new issue