From: Daniel J Walsh <dwalsh@redhat.com>
To: Murray McAllister <mmcallis@redhat.com>
Cc: SE Linux <selinux@tycho.nsa.gov>, Eric Paris <eparis@redhat.com>,
James Morris <jmorris@namei.org>
Subject: Re: user guide drafts: "Searching for and Viewing Denials" and "Analyzing Denials"
Date: Thu, 06 Nov 2008 09:59:16 -0500 [thread overview]
Message-ID: <49130644.10303@redhat.com> (raw)
In-Reply-To: <4912701E.1070700@redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Murray McAllister wrote:
> Daniel J Walsh wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Murray McAllister wrote:
>>> type=AVC msg=audit(1225875185.864:96): avc: denied { getattr } for
>>> pid=2608 comm="httpd" path="/var/www/html/file1" dev=dm-0 ino=284916
>>> scontext=unconfined_u:system_r:httpd_t:s0
>>> tcontext=unconfined_u:object_r:samba_share_t:s0 tclass=file
>>>
>>> { getattr }: The item in braces indicates the permission that was
>>> denied. getattr is used before opening a file. This action is denied due
>> getattr indicates the source process was trying to read the target files
>> status information, processes usually check files status before
>> reading.
> getattr indicates the source process was trying to read the target files
> status information (processes usually check the status of files before
> reading them)...
Great
>>> tcontext="unconfined_u:object_r:samba_share_t:s0": The SELinux context
>>> of the object (target) that the process or user attempted to access. In
>> Remove "or user"
>>> this case, it is the SELinux context of file1. Note: the samba_share_t
>>> type is not accessible to processes running in the httpd_t domain.
>>>
>>> In certain situations, the tcontext may match the scontext, such as when
>>> a Linux user is confined and SELinux policy prevents them from
>>> performing an action, for example, running a setuid application.
>>>
>> This happens when a process tries to execute a system service that will
>> change characteristics of the running process, such as changing the uid
>> or chaning limits, or calling the fork system service. SELinux also
>> generates this type of access violation when a process tries to use a
>> DAC Capability such as reading files that you do not have read access
>> to, or binding to a network port less then 1024.
> How about:
>
> In certain situations, the tcontext may match the scontext, for example,
> when a process attempts to execute a system service that will change
> characteristics of that running process, such as the user ID. Also, the
> tcontext may match the scontext when a process tries to use more
> resources (such as memory) than normal limits allow, resulting in a
> security check to see if that process is allowed to break those limits.
Great
>>
>> All process access
>>
>> fork
>> transition
>> sigchld # commonly granted from child to parent
>> sigkill # cannot be caught or ignored
>> sigstop # cannot be caught or ignored
>> signull # for kill(pid, 0)
>> signal # all other signals
>> ptrace
>> getsched
>> setsched
>> getsession
>> getpgid
>> setpgid
>> getcap
>> setcap
>> share
>> getattr
>> setexec
>> setfscreate
>> noatsecure
>> siginh
>> setrlimit
>> rlimitinh
>> dyntransition
>> setcurrent
>> execmem
>> execstack
>> execheap
>> setkeycreate
>> setsockcreate
>>
>>
>> list of capabilities
>>
>> chown dac_override dac_read_search fowner fsetid kill setgid setuid
>> setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw
>> ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct
>> sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod
>> lease audit_write audit_control setfcap
> Should these be in the user guide?
Maybe in an appendix. Administrators should have an easy reference
describing some of the rules they are adding to policy via audit2allow.
SELinux by Example has a good explanation of these. I still need to
reference it to see if allow rules make sense.
>>> As suggested, run the sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
>>> command to view the complete message. This presents the same information
>>> from the sealert GUI:
>>>
>> People don't understand that this command will only work on the local
>> machine, not sure if we need to say this.
>>> [example output]
> How about:
>
> As suggested, run the sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
> command to view the complete message. This command only works on the
> local machine, and presents the same information as the sealert GUI...
>
Super
> Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkkTBkQACgkQrlYvE4MpobPiywCfUegwX7+TopPuDpbZp4xNYME7
zL0AnRt+D0hk9F6J2sre7UONqm6zKXg5
=UvKh
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
prev parent reply other threads:[~2008-11-06 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 6:52 user guide drafts: "Searching for and Viewing Denials" and "Analyzing Denials" Murray McAllister
2008-11-05 14:59 ` Eric Paris
2008-11-05 20:06 ` Daniel J Walsh
2008-11-06 4:18 ` Murray McAllister
2008-11-06 14:59 ` Daniel J Walsh [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=49130644.10303@redhat.com \
--to=dwalsh@redhat.com \
--cc=eparis@redhat.com \
--cc=jmorris@namei.org \
--cc=mmcallis@redhat.com \
--cc=selinux@tycho.nsa.gov \
/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.