aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-04-24 09:31:31 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-04-24 09:31:31 -0400
commitbff77f44afcdf43e69053dc2a3e4b45514810952 (patch)
treee07632aff6a3bd24d609a3bdf8e306788698fbe1 /src/fcopy
parentfcopy - fix trailing char (diff)
downloadfirejail-bff77f44afcdf43e69053dc2a3e4b45514810952.tar.gz
firejail-bff77f44afcdf43e69053dc2a3e4b45514810952.tar.zst
firejail-bff77f44afcdf43e69053dc2a3e4b45514810952.zip
fcopy - no checking for group in order to fix files such as /usr/bin/mutt_dotlock
Diffstat (limited to 'src/fcopy')
-rw-r--r--src/fcopy/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index b9d2c19a8..da5ade428 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -200,7 +200,8 @@ static char *check(const char *src) {
200 goto errexit; 200 goto errexit;
201 201
202 // check uid 202 // check uid
203 if (s.st_uid != getuid() || s.st_gid != getgid()) 203 // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock
204 if (s.st_uid != getuid()/* || s.st_gid != getgid()*/)
204 goto errexit; 205 goto errexit;
205 206
206 // dir, link, regular file 207 // dir, link, regular file