Research Menu

.
Skip Search Box

SELinux Mailing List

restorecon / matchpathcon

From: LC Bruzenak <lenny_at_MagitekLtd.com>
Date: Thu, 06 Nov 2008 10:04:15 -0600


I see no way to recursively/silently check path context.

The matchpathcon command has a silent but no recursive option. It does return non-zero if something doesn't match.

The restorecon command has both recursive and don't change options but no silent. It does not return non-zero if there is a change to be made, so a redirect of stdout to /dev/null wouldn't suffice.

Is there another way/command?

Thx,
LCB.
--

LC (Lenny) Bruzenak
lenny@magitekltd.com

--

This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. Received on Thu 6 Nov 2008 - 11:04:18 EST

 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service