From: Petr Lautrbach <lautrbach@redhat.com>
To: Chris PeBenito <chpebeni@linux.microsoft.com>,
Dominick Grift <dominick.grift@defensec.nl>,
Stephen Smalley <stephen.smalley.work@gmail.com>
Cc: selinux@vger.kernel.org
Subject: Re: sesearch --neverallow
Date: Mon, 03 Apr 2023 15:38:15 +0200 [thread overview]
Message-ID: <87lej9ytko.fsf@redhat.com> (raw)
In-Reply-To: <2d898b44-02a3-dae2-8e92-fa3a22f9d7a1@linux.microsoft.com>
Chris PeBenito <chpebeni@linux.microsoft.com> writes:
> On 3/31/2023 16:05, Dominick Grift wrote:
>> Stephen Smalley <stephen.smalley.work@gmail.com> writes:
>>
>>> On Fri, Mar 31, 2023 at 2:26 PM Dominick Grift
>>> <dominick.grift@defensec.nl> wrote:
>>>>
>>>> Stephen Smalley <stephen.smalley.work@gmail.com> writes:
>>>>
>>>>> On Fri, Mar 31, 2023 at 8:37 AM Petr Lautrbach <lautrbach@redhat.com> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I've got a question what is `sesearch --neverallow` good for and how to
>>>>>> make it work. I wasn't able to get any output from this command.
>>>>>>
>>>>>> Is it supposed to work with current userspace and policies? How?
>>>>>
>>>>> I don't see how it could work. neverallow rules aren't preserved in
>>>>> the kernel policies.
>>>>> It would only make sense if sesearch could be run on source policies or modules.
>>>>
>>>> Which according to `man sesearch` is possible, but only monolithic policy.conf.
>>>
>>> Even that doesn't seem to be supported by setools 4,
>>> $ sesearch --neverallow policy.conf
>>> Invalid policy: policy.conf. A binary policy must be specified. (use
>>> e.g. policy.33 or sepolicy) Source policies are not supported.
>>>
>>> $ rpm -q -f /usr/bin/sesearch
>>> setools-console-4.4.0-9.fc37.x86_64
>>
>> I was probably looking at the man for setools3 then. (the one on linux.die.net)
>
> I dropped source policy support some time ago. I'll remove --neverallow
> option and man page info.
>
Thanks.
Petr
prev parent reply other threads:[~2023-04-03 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-31 12:29 sesearch --neverallow Petr Lautrbach
2023-03-31 18:15 ` Stephen Smalley
2023-03-31 18:26 ` Dominick Grift
2023-03-31 19:59 ` Stephen Smalley
2023-03-31 20:05 ` Dominick Grift
2023-04-03 12:28 ` Chris PeBenito
2023-04-03 13:38 ` Petr Lautrbach [this message]
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=87lej9ytko.fsf@redhat.com \
--to=lautrbach@redhat.com \
--cc=chpebeni@linux.microsoft.com \
--cc=dominick.grift@defensec.nl \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@gmail.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.