diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,10 @@ int main( int argc, char *argv[] ) { }; assert( grouppw != NULL ); + // literally the only security check + assert( grouppw->gr_gid != 0 ); + assert( userpw->pw_uid != 0 ); + if ( setgroups( 0, NULL ) != 0 ) assert_perror( errno ); |