Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -23,10 +23,11 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include #include #include +#include #include #include #include #include #include @@ -1911,10 +1912,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");