Commit Graph

6 Commits

Author SHA1 Message Date
Brian Feldman
77ae814e61 Account for fts(3)'s FTS_SLNONE case for symbolic links which have
a nonexistant target, in addition to the FTS_SL previously, so e.g.
setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf
succeeds.

Approved by:	re
2002-12-12 20:32:45 +00:00
Robert Watson
214adc07e1 Mdoc markup and language fixes.
Submitted by:	ru
Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-03 15:19:15 +00:00
Robert Watson
db4a5cc27c Cast argument to (long), missed in prior pass.
Approved by:	re
Submitted by:	marcel
2002-12-02 13:26:16 +00:00
Robert Watson
c19f6f99f1 Fix 32-bit/64-bit bug in format string.
Approved by:	re
Submitted by:	marcel
Pointy hat to:	green
2002-12-02 13:25:01 +00:00
Robert Watson
a8896b02e0 Add support for -R for file relabel operations.
Add 'setfsmac' link, which permits labels to be provided in a label
specification file, making it easier to provide initial file system
labeling specifications.  This is used by the new mac_lomac to
provide initial system labeling and policy, and by sebsd, the port
of SELinux FLASK/TE to FreeBSD.

Approved by:	re (jhb)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-02 03:22:57 +00:00
Robert Watson
5b38a427c0 Introduce simple command line tools to manage MAC labels on processes and
files.  Basically wrappers for mac_{get,set}_{file,link,pid,proc}(3).
Man pages to be updated shortly.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-10-23 03:15:24 +00:00