man-pages/man1/aa-exec.1.html
2021-03-31 01:06:50 +01:00

110 lines
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of AA-EXEC</TITLE>
</HEAD><BODY>
<H1>AA-EXEC</H1>
Section: AppArmor (1)<BR>Updated: 2020-05-19<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
aa-exec - confine a program with the specified AppArmor profile
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>aa-exec</B> [options] [--] [<I>&lt;command&gt;</I> ...]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>aa-exec</B> is used to launch a program confined by the specified profile
and or namespace. If both a profile and namespace are specified command
will be confined by profile in the new policy namespace. If only a namespace
is specified, the profile name of the current confinement will be used. If
neither a profile or namespace is specified command will be run using
standard profile attachment (ie. as if run without the aa-exec command).
<P>
If the arguments are to be pasted to the <I>&lt;command&gt;</I> being invoked
by aa-exec then --- should be used to separate aa-exec arguments from the
command.
<BR>&nbsp;&nbsp;aa-exec&nbsp;-p&nbsp;profile1&nbsp;---&nbsp;ls&nbsp;-l
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS <B>aa-exec</B> accepts the following arguments:</H2>
<DL COMPACT>
<DT id="1">-p <FONT SIZE="-1">PROFILE,</FONT> --profile=PROFILE<DD>
confine <I>&lt;command&gt;</I> with <FONT SIZE="-1">PROFILE.</FONT> If the <FONT SIZE="-1">PROFILE</FONT> is not specified
use the current profile name (likely unconfined).
<DT id="2">-n <FONT SIZE="-1">NAMESPACE,</FONT> --namespace=NAMESPACE<DD>
use profiles in <FONT SIZE="-1">NAMESPACE.</FONT> This will result in confinement transitioning
to using the new profile namespace.
<DT id="3">-i, --immediate<DD>
transition to <FONT SIZE="-1">PROFILE</FONT> before doing executing <I>&lt;command&gt;</I>. This
subjects the running of <I>&lt;command&gt;</I> to the exec transition rules
of the current profile.
<DT id="4">-v, --verbose<DD>
show commands being performed
<DT id="5">-d, --debug<DD>
show commands and error codes
<DT id="6">--<DD>
Signal the end of options and disables further option processing. Any
arguments after the --- are treated as arguments of the command. This is
useful when passing arguments to the <I>&lt;command&gt;</I> being invoked by
aa-exec.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
If you find any bugs, please report them at
&lt;<A HREF="https://bugs.launchpad.net/apparmor/+filebug">https://bugs.launchpad.net/apparmor/+filebug</A>&gt;.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+aa-stack">aa-stack</A></B>(8), <B><A HREF="/cgi-bin/man/man2html?8+aa-namespace">aa-namespace</A></B>(8), <B><A HREF="/cgi-bin/man/man2html?7+apparmor">apparmor</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?5+apparmor.d">apparmor.d</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?3+aa_change_profile">aa_change_profile</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+aa_change_onexec">aa_change_onexec</A></B>(3) and &lt;<A HREF="https://wiki.apparmor.net">https://wiki.apparmor.net</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="10"><A HREF="#lbAE">OPTIONS <B>aa-exec</B> accepts the following arguments:</A><DD>
<DT id="11"><A HREF="#lbAF">BUGS</A><DD>
<DT id="12"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:06 GMT, March 31, 2021
</BODY>
</HTML>