Skip to contentSkip to conversation

sesearch --neverallow

DISCUSSION Petr Lautrbach 4 participants 7 messages Mar 31, 2023 – Apr 3, 2023 SELinux security module

lore
Share & tools
lore
#0 lore raw

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?

Thanks,

Petr

maintainer
#1 lore raw
Quoted 7 lines · Petr Lautrbach

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.

#2 lore raw
Quoted 4 lines · Stephen Smalley
Quoted 3 lines · Petr Lautrbach

Hi,

Quoted 8 lines
Quoted 4 lines

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.

Signature · 3 lines
gpg --locate-keys [email protected]
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
Dominick Grift
maintainer
#3 lore raw
Quoted 10 lines · Dominick Grift
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · Petr Lautrbach

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.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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
#4 lore raw
Quoted 20 lines · Stephen Smalley
Quoted 10 lines · Dominick Grift
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · Petr Lautrbach

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.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.

Quoted 7 lines

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)

Signature · 3 lines
gpg --locate-keys [email protected]
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
Dominick Grift
#5 lore raw
Quoted 27 lines · Dominick Grift
Quoted 25 lines · Stephen Smalley
Quoted 10 lines · Dominick Grift
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · Petr Lautrbach

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.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.
Quoted 4 lines
Quoted 2 lines
$ 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.

Signature · 1 line
Chris PeBenito
#6 lore raw
Quoted 28 lines · Chris PeBenito
Quoted 27 lines · Dominick Grift
Quoted 25 lines · Stephen Smalley
Quoted 10 lines · Dominick Grift
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · Petr Lautrbach

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.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
$ 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