From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@vger.kernel.org, James Carter <jwcart2@gmail.com>,
Vit Mojzis <vmojzis@redhat.com>
Subject: Re: [PATCH v2 1/4] python/chcat: Improve man pages
Date: Thu, 11 May 2023 09:24:48 +0200 [thread overview]
Message-ID: <87fs8372kf.fsf@redhat.com> (raw)
In-Reply-To: <CAP+JOzQR=8PSe8AXDvBWoA4LXHCbO_eHJJGuSduH4g-uPHqnRA@mail.gmail.com>
James Carter <jwcart2@gmail.com> writes:
> On Thu, May 4, 2023 at 8:06 AM Vit Mojzis <vmojzis@redhat.com> wrote:
>>
>> - Explain applying range/list of categories
>> - "-d" removes all categories of given file/user
>> - Add examples
>>
>> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
>
> For all four of these patches:
> Acked-by: James Carter <jwcart2@gmail.com>
Merged, thanks!
>> ---
>> python/chcat/chcat.8 | 23 ++++++++++++++++-------
>> 1 file changed, 16 insertions(+), 7 deletions(-)
>>
>> diff --git a/python/chcat/chcat.8 b/python/chcat/chcat.8
>> index d095a255..3e1f7ca2 100644
>> --- a/python/chcat/chcat.8
>> +++ b/python/chcat/chcat.8
>> @@ -1,6 +1,6 @@
>> .TH CHCAT "8" "September 2005" "chcat" "User Commands"
>> .SH NAME
>> -chcat \- change file SELinux security category
>> +chcat \- change SELinux security categories of files/users
>> .SH SYNOPSIS
>> .B chcat
>> \fIcategory file\fR...
>> @@ -25,23 +25,33 @@ chcat \- change file SELinux security category
>> .br
>> .SH DESCRIPTION
>> .PP
>> -Change/Remove the security \fIcategory\fR for each \fIfile\fR or \fIuser\fR.
>> -.PP
>> -Use +/- to add/remove categories from a \fIfile\fR or \fIuser\fR.
>> +Use +/- to add/remove categories from a \fIfile\fR or \fIuser\fR (only a single category can be specified at a time). Or specify the desired list/range of categories to be applied (replacing the existing categories).
>> .PP
>> .B
>> Note:
>> -When removing a category you must specify '\-\-' on the command line before using the \-Category syntax. This tells the command that you have finished entering options and are now specifying a category name instead.
>> +When removing a category you must specify '\-\-' on the command line before using the \-Category syntax. This tells the command that you have finished entering options and are now specifying a category name instead.
>>
>> .TP
>> \fB\-d\fR
>> -delete the category from each FILE/USER.
>> +delete all categories from given FILE/USER.
>> .TP
>> \fB\-L\fR
>> list available categories.
>> .TP
>> \fB\-l\fR
>> Tells chcat to operate on users instead of files.
>> +
>> +.SH EXAMPLE
>> +.nf
>> +Replace categories of user "test" with c0.c6
>> +# chcat -l c0.c6 test
>> +Add category c1023 to user "test"
>> +# chcat -l +c1023 test
>> +Remove category c5 from file "file"
>> +# chcat -- -c5 file
>> +Remove all categories from file "file"
>> +# chcat -d file
>> +
>> .SH "SEE ALSO"
>> .TP
>> chcon(1), selinux(8), semanage(8)
>> @@ -52,4 +62,3 @@ When operating on files this script wraps the chcon command.
>> /etc/selinux/{SELINUXTYPE}/setrans.conf
>> .br
>> /etc/selinux/{SELINUXTYPE}/seusers
>> -
>> --
>> 2.40.0
>>
next prev parent reply other threads:[~2023-05-11 7:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-03 12:03 [PATCH 0/3] python: Improve man pages Vit Mojzis
2023-05-03 12:03 ` [PATCH 1/3] python/chcat: " Vit Mojzis
2023-05-03 18:34 ` James Carter
2023-05-03 12:03 ` [PATCH 2/3] python/audit2allow: Add missing options to man page Vit Mojzis
2023-05-03 18:36 ` James Carter
2023-05-03 12:03 ` [PATCH 3/3] python/semanage: Improve man pages Vit Mojzis
2023-05-03 18:59 ` James Carter
2023-05-04 12:04 ` [PATCH v2 0/4] python: " Vit Mojzis
2023-05-04 12:04 ` [PATCH v2 1/4] python/chcat: " Vit Mojzis
2023-05-04 14:06 ` James Carter
2023-05-11 7:24 ` Petr Lautrbach [this message]
2023-05-04 12:04 ` [PATCH v2 2/4] python/audit2allow: Add missing options to man page Vit Mojzis
2023-05-04 12:04 ` [PATCH v2 3/4] python/semanage: Improve man pages Vit Mojzis
2023-05-04 12:04 ` [PATCH v2 4/4] python/audit2allow: Remove unused "debug" option Vit Mojzis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fs8372kf.fsf@redhat.com \
--to=plautrba@redhat.com \
--cc=jwcart2@gmail.com \
--cc=selinux@vger.kernel.org \
--cc=vmojzis@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.