Maintaining PAX labels across package updates

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Maintaining PAX labels across package updates

Postby mutemule » Mon Nov 02, 2015 5:25 pm

We're storing our PAX stuff in XATTR, and it's generally working out alright. Except when package updates happen: old binary is deleted, new binary is created, service is restarted. Which may or may not work, since the extended attributes no longer exist for that file. We've looked at using incron to automatically re-set the flags, but if the file is deleted, the inotify handle is lost, so this doesn't work very well.

How do folks keep a persistent set of PAX flags? Is there some trick to automatically re-create the flags when the file is updated/deleted/created?
mutemule
 
Posts: 7
Joined: Thu Aug 28, 2014 8:58 am

Re: Maintaining PAX labels across package updates

Postby spender » Mon Nov 02, 2015 6:13 pm

Is paxctld not working properly?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Maintaining PAX labels across package updates

Postby mutemule » Wed Nov 04, 2015 10:02 am

.... wow. Not sure how I missed that. It looks pretty much exactly like what I want.
mutemule
 
Posts: 7
Joined: Thu Aug 28, 2014 8:58 am


Return to grsecurity support