xref: /freebsd/usr.sbin/setpmac/setpmac.8 (revision ace5be682d8e04a1dccf8939efa1babe059e3609)
18d43d865SChris Costello.\" Copyright (c) 2003 Networks Associates Technology, Inc.
28d43d865SChris Costello.\" All rights reserved.
38d43d865SChris Costello.\"
48d43d865SChris Costello.\" This software was developed for the FreeBSD Project by Chris Costello
58d43d865SChris Costello.\" at Safeport Network Services and Network Associates Labs, the
68d43d865SChris Costello.\" Security Research Division of Network Associates, Inc. under
78d43d865SChris Costello.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
88d43d865SChris Costello.\" DARPA CHATS research program.
98d43d865SChris Costello.\"
108d43d865SChris Costello.\" Redistribution and use in source and binary forms, with or without
118d43d865SChris Costello.\" modification, are permitted provided that the following conditions
128d43d865SChris Costello.\" are met:
138d43d865SChris Costello.\" 1. Redistributions of source code must retain the above copyright
148d43d865SChris Costello.\"    notice, this list of conditions and the following disclaimer.
158d43d865SChris Costello.\" 2. Redistributions in binary form must reproduce the above copyright
168d43d865SChris Costello.\"    notice, this list of conditions and the following disclaimer in the
178d43d865SChris Costello.\"    documentation and/or other materials provided with the distribution.
188d43d865SChris Costello.\"
198d43d865SChris Costello.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
208d43d865SChris Costello.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
218d43d865SChris Costello.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
228d43d865SChris Costello.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
238d43d865SChris Costello.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
248d43d865SChris Costello.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
258d43d865SChris Costello.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
268d43d865SChris Costello.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
278d43d865SChris Costello.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
288d43d865SChris Costello.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
298d43d865SChris Costello.\" SUCH DAMAGE.
308d43d865SChris Costello.\"
318d43d865SChris Costello.\" $FreeBSD$
32ace5be68SRuslan Ermilov.\"
33ace5be68SRuslan Ermilov.Dd January 14, 2003
348d43d865SChris Costello.Os
358d43d865SChris Costello.Dt SETPMAC 8
368d43d865SChris Costello.Sh NAME
378d43d865SChris Costello.Nm setpmac
38ace5be68SRuslan Ermilov.Nd "run a command with a different MAC process label"
398d43d865SChris Costello.Sh SYNOPSIS
408d43d865SChris Costello.Nm
418d43d865SChris Costello.Ar label
428d43d865SChris Costello.Ar command
43ace5be68SRuslan Ermilov.Op Ar arg ...
448d43d865SChris Costello.Sh DESCRIPTION
458d43d865SChris CostelloThe
468d43d865SChris Costello.Nm
478d43d865SChris Costelloutility forks a new process, attempts to set the label to
488d43d865SChris Costello.Ar label
498d43d865SChris Costelloand if successful, runs
508d43d865SChris Costello.Ar command .
518d43d865SChris Costello.Sh SEE ALSO
52f42021e7SChris Costello.Xr mac 4 ,
538d43d865SChris Costello.Xr maclabel 7 ,
548d43d865SChris Costello.Xr getfmac 8 ,
558d43d865SChris Costello.Xr getpmac 8 ,
568d43d865SChris Costello.Xr setfmac 8
57523313a4SChris Costello.Sh AUTHORS
588d43d865SChris CostelloThis software was contributed to the
598d43d865SChris Costello.Fx
608d43d865SChris CostelloProject by Network Associates Labs,
618d43d865SChris Costellothe Security Research Division of Network Associates
62ace5be68SRuslan ErmilovInc. under DARPA/SPAWAR contract N66001-01-C-8035
63ace5be68SRuslan Ermilov.Pq Dq CBOSS ,
648d43d865SChris Costelloas part of the DARPA CHATS research program.
65