Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -1,8 +1,9 @@ #include #include #include +#include #include #include #include #include #include @@ -1461,10 +1462,13 @@ perror("setuid"); return(1); } } + + /* Do not allow any privilege changes beyond this point */ + prctl(PR_SET_NO_NEW_PRIVS, 1); /* Initialize */ init_ret = filed_init(cache_size); if (init_ret != 0) { perror("filed_init");