setfmac.8 (a8896b02e03af0e927be8756f15d11b8cabb75ba) | setfmac.8 (214adc07e150b8282be1310518c33eeb7f7dd00f) |
---|---|
1.\" Copyright (c) 2002 Networks Associates Technology, Inc. 2.\" All rights reserved. 3.\" 4.\" This software was developed for the FreeBSD Project by Chris 5.\" Costello at Safeport Network Services and NAI Labs, the Security 6.\" Research Division of Network Associates, Inc. under DARPA/SPAWAR 7.\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 8.\" research program. --- 25 unchanged lines hidden (view full) --- 34.Sh NAME 35.Nm setfmac , 36.Nm setfsmac 37.Nd set MAC label for a file system object 38.Sh SYNOPSIS 39.Nm setfmac 40.Op Fl hR 41.Ar label | 1.\" Copyright (c) 2002 Networks Associates Technology, Inc. 2.\" All rights reserved. 3.\" 4.\" This software was developed for the FreeBSD Project by Chris 5.\" Costello at Safeport Network Services and NAI Labs, the Security 6.\" Research Division of Network Associates, Inc. under DARPA/SPAWAR 7.\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 8.\" research program. --- 25 unchanged lines hidden (view full) --- 34.Sh NAME 35.Nm setfmac , 36.Nm setfsmac 37.Nd set MAC label for a file system object 38.Sh SYNOPSIS 39.Nm setfmac 40.Op Fl hR 41.Ar label |
42.Op Ar file ... | 42.Ar |
43.Nm setfsmac 44.Op Fl ehvx 45.Op Fl f Ar specfile 46.Op Fl s Ar specfile | 43.Nm setfsmac 44.Op Fl ehvx 45.Op Fl f Ar specfile 46.Op Fl s Ar specfile |
47.Ar path 48.Op Ar file ... | 47.Ar |
49.Sh DESCRIPTION 50The 51.Nm setfmac 52utility assigns the specified MAC label to the specified files. 53The following options are available: 54.Bl -tag -width indent 55.It Fl R 56Set the labels on the file hierarchies rooted in the files instead of --- 27 unchanged lines hidden (view full) --- 84given. 85.It Fl h 86If the file is a symbolic link, change the label of the link rather 87than the file that the link points to. 88.It Fl s Ar specfile 89Add the specification in 90.Ar specfile , 91but assume that the specification format is that used in the port | 48.Sh DESCRIPTION 49The 50.Nm setfmac 51utility assigns the specified MAC label to the specified files. 52The following options are available: 53.Bl -tag -width indent 54.It Fl R 55Set the labels on the file hierarchies rooted in the files instead of --- 27 unchanged lines hidden (view full) --- 83given. 84.It Fl h 85If the file is a symbolic link, change the label of the link rather 86than the file that the link points to. 87.It Fl s Ar specfile 88Add the specification in 89.Ar specfile , 90but assume that the specification format is that used in the port |
92of SELinux to FreeBSD as SEBSD. | 91of 92.Tn SELinux 93to 94.Fx , 95.Tn SEBSD. |
93At most one of the specifications will be applied to each file traversed per 94.Fl f Ar specfile 95given. 96The prefix | 96At most one of the specifications will be applied to each file traversed per 97.Fl f Ar specfile 98given. 99The prefix |
97.Dq sebsd/ | 100.Dq Li sebsd/ |
98will automatically be prepended to the labels in this file, and labels 99matching | 101will automatically be prepended to the labels in this file, and labels 102matching |
100.Dq <<none>> | 103.Dq Li <<none>> |
101will be explicitly not relabeled. | 104will be explicitly not relabeled. |
102This permits SEBSD to re-use existing SELinux policy specification files | 105This permits SEBSD to re-use existing 106.Tn SELinux 107policy specification files |
103unmodified. 104.It Fl v 105Increase the degree of verbosity. 106When given, information detailing the labelling operation is printed while 107in progress. 108.It Fl x 109Do not cross recurse into new filesystems when traversing them. 110.El 111.Sh SEE ALSO 112.Xr mac 3 , 113.Xr mac_set_file 3 , 114.Xr mac_set_link 3 , 115.Xr re_format 7 , 116.Xr getfmac 8 , 117.Xr mac 9 | 108unmodified. 109.It Fl v 110Increase the degree of verbosity. 111When given, information detailing the labelling operation is printed while 112in progress. 113.It Fl x 114Do not cross recurse into new filesystems when traversing them. 115.El 116.Sh SEE ALSO 117.Xr mac 3 , 118.Xr mac_set_file 3 , 119.Xr mac_set_link 3 , 120.Xr re_format 7 , 121.Xr getfmac 8 , 122.Xr mac 9 |