Skip to content
/ nnp Public

Utility using the "No New Privileges" Mechanism in newer Linux kernels

Notifications You must be signed in to change notification settings

gebi/nnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NNP - No New Privileges

NO_NEW_Privileges is a new linux mechanism to make sure a program or any child thereof can not gain any new privileges.

This sample program is based on http://www.outflux.net/blog/archives/2012/03/26/keeping-your-process-unprivileged/ from Kees Cook.

COMPILE

gcc -Wall -O2 nnp.c -o nnp

EXAMPLES

% nnp ping localhost     
ping: icmp open socket: Operation not permitted.

% nnp mtr localhost       
mtr: unable to get raw sockets.

About

Utility using the "No New Privileges" Mechanism in newer Linux kernels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published