Skip to contentSkip to conversation

quota and ampd

DISCUSSION Ryan Bergauer 4 participants 6 messages Jul 8, 2002 – Jul 9, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

I just installed the new release of SELinux, and I get about 7 messages at boot-time requesting different permissions for quotaon, per the following:

avc: denied { read } for pid=141 exe=/sbin/quotaon
path=/usr/lib/locale/en_US.iso885915/LC_IDENTIFICATION dev=03:02 ino=1289283 scontext=system_u:system_r:quota_t tcontext=system_u:object_r:writeable_t tclass=file

That wasn't there before the new release, and my kernel configuration should've been the same. Anyone else getting this?

In addition, I'm getting quite a few denied messages at boot and shutdown regarding killall5 when I enable Advanced Power Management Bios in the kernel (with apmd_t wanting read-type permissions for items in init_t and kernel_t.) This sound familiar to anyone else? Please note that this was occurring before the new release, I just never got around to confronting it until now.

Thanks!
-Ryan

#1 lore raw

Hello,

Quota is one of the packages I was working on over the weekend. I did get some messages as well but I had more probs w/ version 2 of quota and have not finished playing with it yet.

You can run newrule -d -v to get the syntax that's needed.

Ed

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ryan Bergauer
Sent: Monday, July 08, 2002 5:58 PM
To: [email protected]
Subject: quota and ampd

I just installed the new release of SELinux, and I get about 7 messages at boot-time requesting different permissions for quotaon, per the following:

avc: denied { read } for pid=141 exe=/sbin/quotaon
path=/usr/lib/locale/en_US.iso885915/LC_IDENTIFICATION dev=03:02 ino=1289283 scontext=system_u:system_r:quota_t tcontext=system_u:object_r:writeable_t tclass=file

That wasn't there before the new release, and my kernel configuration should've been the same. Anyone else getting this?

In addition, I'm getting quite a few denied messages at boot and shutdown regarding killall5 when I enable Advanced Power Management Bios in the kernel (with apmd_t wanting read-type permissions for items in init_t and kernel_t.) This sound familiar to anyone else? Please note that this was occurring before the new release, I just never got around to confronting it until now.

Thanks!
-Ryan

#2 lore raw
In reply to Ryan Bergauer
Quoted 11 lines · Ryan Bergauer

I just installed the new release of SELinux, and I get about 7 messages at boot-time requesting different permissions for quotaon, per the following:

avc: denied { read } for pid=141 exe=/sbin/quotaon
path=/usr/lib/locale/en_US.iso885915/LC_IDENTIFICATION dev=03:02 ino=1289283 scontext=system_u:system_r:quota_t tcontext=system_u:object_r:writeable_t tclass=file

That wasn't there before the new release, and my kernel configuration should've been the same. Anyone else getting this?

The quota_t domain is new to this upstream release. It was contributed by Russell Coker. Hence, it isn't surprising that you may see some denials on RH systems, since Russell is using Debian. Feel free to grant quota_t read access to writeable_t (and even write access, if required).

Quoted 6 lines

In addition, I'm getting quite a few denied messages at boot and shutdown regarding killall5 when I enable Advanced Power Management Bios in the kernel (with apmd_t wanting read-type permissions for items in init_t and kernel_t.) This sound familiar to anyone else? Please note that this was occurring before the new release, I just never got around to confronting it until now.

What are the specific audit messages (or at least some examples)?

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw

RE: quota and ampd (and one more thing)

Quoted 2 lines · Stephen Smalley
Quoted 2 lines

In addition, I'm getting quite a few denied messages at boot and shutdown regarding killall5 when I enable Advanced Power Management

Bios

Quoted 3 lines
Quoted 3 lines

in the kernel (with apmd_t wanting read-type permissions for items in init_t and kernel_t.) This sound familiar to anyone else? Please note that this was occurring before the new release, I just never got

around

Quoted 3 lines
Quoted 1 line

to confronting it until now.

What are the specific audit messages (or at least some examples)?

Here are four of the ones appearing at boot. They're pretty representative of the rest.

avc: denied { getattr } for pid=712 exe=/sbin/killall5 path=/1/stat dev=00:03 ino=65547 scontext=system_u:system_r:apmd_t tcontext=system_u:system_r:init_t tclass=file

avc: denied { read } for pid=712 exe=/sbin/killall5 path=/1/exe dev=00:03 ino=65543 scontext=system_u:system_r:apmd_t tcontext=system_u:system_r:init_t tclass=lnk_file

avc: denied { search } for pid=712 exe=/sbin/killall5 path=/4 dev=00:03 ino=262146 scontext=system_u:system_r:apmd_t tcontext=system_u:system_r:kernel_t tclass=dir

avc: denied { read } for pid=712 exe=/sbin/killall5 path=/4/stat dev=00:03 ino=262155 scontext=system_u:system_r:apmd_t tcontext=system_u:system_r:kernel_t tclass=file

Also, I tried running run_init this morning and received the message (after authentication):

execvp_secure: No such file or directory

Has anyone encountered this?

-Ryan

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw

RE: quota and ampd (and one more thing)

Quoted 6 lines · Ryan Bergauer

Here are four of the ones appearing at boot. They're pretty representative of the rest.

avc: denied { getattr } for pid=712 exe=/sbin/killall5 path=/1/stat dev=00:03 ino=65547 scontext=system_u:system_r:apmd_t tcontext=system_u:system_r:init_t tclass=file

I see. If apmd needs to be able to kill all processes, you'll need to add permissions to permit it to access all /proc/PID directories and to send signals to all processes, e.g.:

	allow apmd_t domain:{ file lnk_file } r_file_perms;
	allow apmd_t domain:dir r_dir_perms;
	allow apmd_t domain:process signal_perms;
Quoted 6 lines

Also, I tried running run_init this morning and received the message (after authentication):

execvp_secure: No such file or directory

Has anyone encountered this?

This indicates that you specified a non-existing path as the script name for run_init. Or at least that run_init was unable to find it.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
In reply to Ryan Bergauer
Quoted 3 lines · Ryan Bergauer

I just installed the new release of SELinux, and I get about 7 messages at boot-time requesting different permissions for quotaon, per the following:

I should have some new additions for the quota.te file soon which may address these issues.

Quoted 6 lines

In addition, I'm getting quite a few denied messages at boot and shutdown regarding killall5 when I enable Advanced Power Management Bios in the kernel (with apmd_t wanting read-type permissions for items in init_t and kernel_t.) This sound familiar to anyone else? Please note that this was occurring before the new release, I just never got around to confronting it until now.

I'll check that out, I don't often check shutdown errors...

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.