198359716SRobert Watson.\" Copyright (c) 2002, 2004 Networks Associates Technology, Inc. 25b38a427SRobert Watson.\" All rights reserved. 35b38a427SRobert Watson.\" 45b38a427SRobert Watson.\" This software was developed for the FreeBSD Project by Chris 55b38a427SRobert Watson.\" Costello at Safeport Network Services and NAI Labs, the Security 65b38a427SRobert Watson.\" Research Division of Network Associates, Inc. under DARPA/SPAWAR 75b38a427SRobert Watson.\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 85b38a427SRobert Watson.\" research program. 95b38a427SRobert Watson.\" 105b38a427SRobert Watson.\" Redistribution and use in source and binary forms, with or without 115b38a427SRobert Watson.\" modification, are permitted provided that the following conditions 125b38a427SRobert Watson.\" are met: 135b38a427SRobert Watson.\" 1. Redistributions of source code must retain the above copyright 145b38a427SRobert Watson.\" notice, this list of conditions and the following disclaimer. 155b38a427SRobert Watson.\" 2. Redistributions in binary form must reproduce the above copyright 165b38a427SRobert Watson.\" notice, this list of conditions and the following disclaimer in the 175b38a427SRobert Watson.\" documentation and/or other materials provided with the distribution. 185b38a427SRobert Watson.\" 195b38a427SRobert Watson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 205b38a427SRobert Watson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 215b38a427SRobert Watson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 225b38a427SRobert Watson.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 235b38a427SRobert Watson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 245b38a427SRobert Watson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 255b38a427SRobert Watson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 265b38a427SRobert Watson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 275b38a427SRobert Watson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 285b38a427SRobert Watson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 295b38a427SRobert Watson.\" SUCH DAMAGE. 3098359716SRobert Watson.Dd February 17, 2004 315b38a427SRobert Watson.Dt SETFMAC 8 32051bb54bSRuslan Ermilov.Os 335b38a427SRobert Watson.Sh NAME 346cc0c637SChris Costello.Nm setfmac 355b38a427SRobert Watson.Nd set MAC label for a file system object 365b38a427SRobert Watson.Sh SYNOPSIS 37a8896b02SRobert Watson.Nm setfmac 3898359716SRobert Watson.Op Fl hqR 395b38a427SRobert Watson.Ar label 40214adc07SRobert Watson.Ar 415b38a427SRobert Watson.Sh DESCRIPTION 425b38a427SRobert WatsonThe 43a8896b02SRobert Watson.Nm setfmac 44a8896b02SRobert Watsonutility assigns the specified MAC label to the specified files. 45a8896b02SRobert WatsonThe following options are available: 46a8896b02SRobert Watson.Bl -tag -width indent 47a8896b02SRobert Watson.It Fl R 48a8896b02SRobert WatsonSet the labels on the file hierarchies rooted in the files instead of 49a8896b02SRobert Watsonjust the files themselves. 50a8896b02SRobert Watson.It Fl h 51a8896b02SRobert WatsonIf the file is a symbolic link, change the label of the link rather 52a8896b02SRobert Watsonthan the file that the link points to. 5398359716SRobert Watson.It Fl q 5498359716SRobert WatsonDo not print non-fatal warnings during execution. 55a8896b02SRobert Watson.El 565b38a427SRobert Watson.Sh SEE ALSO 575b38a427SRobert Watson.Xr mac 3 , 585b38a427SRobert Watson.Xr mac_set_file 3 , 59a8896b02SRobert Watson.Xr mac_set_link 3 , 60f42021e7SChris Costello.Xr mac 4 , 61a8896b02SRobert Watson.Xr re_format 7 , 625b38a427SRobert Watson.Xr getfmac 8 , 636cc0c637SChris Costello.Xr setfsmac 8 , 645b38a427SRobert Watson.Xr mac 9 65