Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Sep 3, 2017
1 parent 52c8179 commit 9daeca5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/include/euid_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@
extern uid_t firejail_uid;
extern uid_t firejail_gid;



static inline void EUID_ROOT(void) {
if (seteuid(0) == -1)
fprintf(stderr, "Warning: cannot switch euid to root\n");
if (setegid(0) == -1)
fprintf(stderr, "Warning: cannot switch egid to root\n");
int rv = seteuid(0);
rv = setegid(0);
(void) rv;
}

static inline void EUID_USER(void) {
Expand Down

0 comments on commit 9daeca5

Please sign in to comment.