FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-04-2012, 03:28 PM
suvayu ali
 
Default OpenAFS and SELinux

Hi,

Every time I start openafs with "systemctl start openafs.service", I get
the following SELinux AVC denial.

SELinux is preventing /usr/sbin/afsd from using the dac_override
capability.

# systemctl status openafs.service
openafs.service - LSB: start and stop OpenAFS
Loaded: loaded (/etc/rc.d/init.d/openafs)
Active: active (running) since Wed, 04 Jul 2012 17:17:20
+0200; 8min ago
Process: 15673 ExecStart=/etc/rc.d/init.d/openafs start
(code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/openafs.service
â”” 15696 /usr/sbin/afsd -mountdir /afs -confdir
/etc/openafs -stat 2000 -dcache 800 -daemons 3 -volumes 70 -nosettime
-memcache -afsdb -dynroot

Jul 04 17:17:20 <localhost> openafs[15673]: Loading AFS kernel
module: [ OK ]
Jul 04 17:17:20 <localhost> openafs[15673]: Starting AFS client:
afsd: All AFS daemons started.
Jul 04 17:17:20 <localhost> openafs[15673]: afsd: All AFS daemons started.
Jul 04 17:17:20 <localhost> openafs[15673]: Can't open /etc/mtab for
writing (errno 13); not adding an entry for AFS
Jul 04 17:17:20 <localhost> openafs[15673]: [ OK ]

# auditctl -w /etc/shadow -p w
# ausearch -m avc -ts recent
time->Wed Jul 4 17:17:20 2012
type=SYSCALL msg=audit(1341415040.319:275): arch=c000003e syscall=2
success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=0
ppid=15688 pid=15689 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0
egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="afsd"
exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0 key=(null)
type=AVC msg=audit(1341415040.319:275): avc: denied { dac_override }
for pid=15689 comm="afsd" capability=1
scontext=system_u:system_r:afs_t:s0
tcontext=system_u:system_r:afs_t:s0 tclass=capability

Can someone shed some light if this is a policy bug or an issue at my
end?

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-04-2012, 05:36 PM
David Quigley
 
Default OpenAFS and SELinux

On 07/04/2012 11:28, suvayu ali wrote:

Hi,

Every time I start openafs with "systemctl start openafs.service", I
get

the following SELinux AVC denial.

SELinux is preventing /usr/sbin/afsd from using the dac_override
capability.

# systemctl status openafs.service
openafs.service - LSB: start and stop OpenAFS
Loaded: loaded (/etc/rc.d/init.d/openafs)
Active: active (running) since Wed, 04 Jul 2012 17:17:20
+0200; 8min ago
Process: 15673 ExecStart=/etc/rc.d/init.d/openafs start
(code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/openafs.service
â”” 15696 /usr/sbin/afsd -mountdir /afs -confdir
/etc/openafs -stat 2000 -dcache 800 -daemons 3 -volumes 70 -nosettime
-memcache -afsdb -dynroot

Jul 04 17:17:20 <localhost> openafs[15673]: Loading AFS kernel
module: [ OK ]
Jul 04 17:17:20 <localhost> openafs[15673]: Starting AFS client:
afsd: All AFS daemons started.
Jul 04 17:17:20 <localhost> openafs[15673]: afsd: All AFS daemons
started.
Jul 04 17:17:20 <localhost> openafs[15673]: Can't open /etc/mtab
for

writing (errno 13); not adding an entry for AFS
Jul 04 17:17:20 <localhost> openafs[15673]: [ OK ]

# auditctl -w /etc/shadow -p w
# ausearch -m avc -ts recent
time->Wed Jul 4 17:17:20 2012
type=SYSCALL msg=audit(1341415040.319:275): arch=c000003e syscall=2
success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=0
ppid=15688 pid=15689 auid=4294967295 uid=0 gid=0 euid=0 suid=0
fsuid=0

egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="afsd"
exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0 key=(null)
type=AVC msg=audit(1341415040.319:275): avc: denied { dac_override
}

for pid=15689 comm="afsd" capability=1
scontext=system_u:system_r:afs_t:s0
tcontext=system_u:system_r:afs_t:s0 tclass=capability

Can someone shed some light if this is a policy bug or an issue at my
end?

--
Suvayu

Open source is the future. It sets us free.


What are your permissions on /etc/mtab. The AVC is basically saying
that the AFS daemon was trying to override the normal permission checks
and access the file anyway. It looks like the daemon is running as root
and on my box /etc/mtab is owned by root so it looks to me like it
shouldn't need to.


Dave
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-04-2012, 06:56 PM
suvayu ali
 
Default OpenAFS and SELinux

Hi Dave,

On Wed, Jul 4, 2012 at 7:36 PM, David Quigley <selinux@davequigley.com> wrote:
> On 07/04/2012 11:28, suvayu ali wrote:
>>
>> Hi,
>>
>> Every time I start openafs with "systemctl start openafs.service", I get
>> the following SELinux AVC denial.
>>
>> SELinux is preventing /usr/sbin/afsd from using the dac_override
>> capability.
>>
>> # systemctl status openafs.service
>> openafs.service - LSB: start and stop OpenAFS
>> Loaded: loaded (/etc/rc.d/init.d/openafs)
>> Active: active (running) since Wed, 04 Jul 2012 17:17:20
>> +0200; 8min ago
>> Process: 15673 ExecStart=/etc/rc.d/init.d/openafs start
>> (code=exited, status=0/SUCCESS)
>> CGroup: name=systemd:/system/openafs.service
>> â”” 15696 /usr/sbin/afsd -mountdir /afs -confdir
>> /etc/openafs -stat 2000 -dcache 800 -daemons 3 -volumes 70 -nosettime
>> -memcache -afsdb -dynroot
>>
>> Jul 04 17:17:20 <localhost> openafs[15673]: Loading AFS kernel
>> module: [ OK ]
>> Jul 04 17:17:20 <localhost> openafs[15673]: Starting AFS client:
>> afsd: All AFS daemons started.
>> Jul 04 17:17:20 <localhost> openafs[15673]: afsd: All AFS daemons
>> started.
>> Jul 04 17:17:20 <localhost> openafs[15673]: Can't open /etc/mtab for
>> writing (errno 13); not adding an entry for AFS
>> Jul 04 17:17:20 <localhost> openafs[15673]: [ OK ]
>>
>> # auditctl -w /etc/shadow -p w
>> # ausearch -m avc -ts recent
>> time->Wed Jul 4 17:17:20 2012
>> type=SYSCALL msg=audit(1341415040.319:275): arch=c000003e syscall=2
>> success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=0
>> ppid=15688 pid=15689 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0
>> egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="afsd"
>> exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0 key=(null)
>> type=AVC msg=audit(1341415040.319:275): avc: denied { dac_override }
>> for pid=15689 comm="afsd" capability=1
>> scontext=system_u:system_r:afs_t:s0
>> tcontext=system_u:system_r:afs_t:s0 tclass=capability
>>
>> Can someone shed some light if this is a policy bug or an issue at my
>> end?
>>
>
> What are your permissions on /etc/mtab. The AVC is basically saying that the
> AFS daemon was trying to override the normal permission checks and access
> the file anyway. It looks like the daemon is running as root and on my box
> /etc/mtab is owned by root so it looks to me like it shouldn't need to.
>

The permissions seem to be as I would expect them to be:

# lt /etc/mtab; ls -Z /etc/mtab
lrwxrwxrwx. 1 root root 12 Jun 28 09:53 /etc/mtab -> /proc/mounts
lrwxrwxrwx. root root unconfined_ubject_r:etc_t:s0 /etc/mtab -> /proc/mounts

Since I am starting the daemon with systemctl the daemon should be
running as root. I see no potential conflicts here then. Am I right?


--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-05-2012, 10:27 AM
Daniel J Walsh
 
Default OpenAFS and SELinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/04/2012 02:56 PM, suvayu ali wrote:
> Hi Dave,
>
> On Wed, Jul 4, 2012 at 7:36 PM, David Quigley <selinux@davequigley.com>
> wrote:
>> On 07/04/2012 11:28, suvayu ali wrote:
>>>
>>> Hi,
>>>
>>> Every time I start openafs with "systemctl start openafs.service", I
>>> get the following SELinux AVC denial.
>>>
>>> SELinux is preventing /usr/sbin/afsd from using the dac_override
>>> capability.
>>>
>>> # systemctl status openafs.service openafs.service - LSB: start and
>>> stop OpenAFS Loaded: loaded (/etc/rc.d/init.d/openafs) Active: active
>>> (running) since Wed, 04 Jul 2012 17:17:20 +0200; 8min ago Process:
>>> 15673 ExecStart=/etc/rc.d/init.d/openafs start (code=exited,
>>> status=0/SUCCESS) CGroup: name=systemd:/system/openafs.service â”” 15696
>>> /usr/sbin/afsd -mountdir /afs -confdir /etc/openafs -stat 2000 -dcache
>>> 800 -daemons 3 -volumes 70 -nosettime -memcache -afsdb -dynroot
>>>
>>> Jul 04 17:17:20 <localhost> openafs[15673]: Loading AFS kernel module:
>>> [ OK ] Jul 04 17:17:20 <localhost> openafs[15673]: Starting AFS
>>> client: afsd: All AFS daemons started. Jul 04 17:17:20 <localhost>
>>> openafs[15673]: afsd: All AFS daemons started. Jul 04 17:17:20
>>> <localhost> openafs[15673]: Can't open /etc/mtab for writing (errno
>>> 13); not adding an entry for AFS Jul 04 17:17:20 <localhost>
>>> openafs[15673]: [ OK ]
>>>
>>> # auditctl -w /etc/shadow -p w # ausearch -m avc -ts recent time->Wed
>>> Jul 4 17:17:20 2012 type=SYSCALL msg=audit(1341415040.319:275):
>>> arch=c000003e syscall=2 success=no exit=-13 a0=42402b a1=80442 a2=1b6
>>> a3=238 items=0 ppid=15688 pid=15689 auid=4294967295 uid=0 gid=0 euid=0
>>> suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295
>>> comm="afsd" exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0
>>> key=(null) type=AVC msg=audit(1341415040.319:275): avc: denied {
>>> dac_override } for pid=15689 comm="afsd" capability=1
>>> scontext=system_u:system_r:afs_t:s0 tcontext=system_u:system_r:afs_t:s0
>>> tclass=capability
>>>
>>> Can someone shed some light if this is a policy bug or an issue at my
>>> end?
>>>
>>
>> What are your permissions on /etc/mtab. The AVC is basically saying that
>> the AFS daemon was trying to override the normal permission checks and
>> access the file anyway. It looks like the daemon is running as root and
>> on my box /etc/mtab is owned by root so it looks to me like it shouldn't
>> need to.
>>
>
> The permissions seem to be as I would expect them to be:
>
> # lt /etc/mtab; ls -Z /etc/mtab lrwxrwxrwx. 1 root root 12 Jun 28 09:53
> /etc/mtab -> /proc/mounts lrwxrwxrwx. root root
> unconfined_ubject_r:etc_t:s0 /etc/mtab -> /proc/mounts
>
> Since I am starting the daemon with systemctl the daemon should be running
> as root. I see no potential conflicts here then. Am I right?
>
>
After turning on full auditing can you try it again and get the full AVC,
including the PATH record.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/1bA0ACgkQrlYvE4MpobMypQCdHsxwBLUat/SFgNp+iAms+SUr
qFoAoJ6ZxEM+He0z9Q8EUPHtPCG/GJuh
=NqWC
-----END PGP SIGNATURE-----
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-06-2012, 09:34 AM
suvayu ali
 
Default OpenAFS and SELinux

Hi Daniel,

On Thu, Jul 5, 2012 at 12:27 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
> After turning on full auditing can you try it again and get the full AVC,
> including the PATH record.

On a freshly booted system, I turned on full auditing like this:

# auditctl -w /etc/shadow -p w

Then I started openafs like this:

# systemctl start openafs.service

which generated an AVC denial (output below).

# ausearch -m avc -ts recent

time->Fri Jul 6 11:20:49 2012

type=PATH msg=audit(1341566449.720:133): item=0 name="/etc/mtab"
inode=36536 dev=00:03 mode=0100444 ouid=0 ogid=0 rdev=00:00
obj=system_u:system_r:afs_t:s0

type=CWD msg=audit(1341566449.720:133): cwd="/"

type=SYSCALL msg=audit(1341566449.720:133): arch=c000003e syscall=2
success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=1 ppid=2752
pid=2753 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0
sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="afsd"
exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0 key=(null)

type=AVC msg=audit(1341566449.720:133): avc: denied { dac_override }
for pid=2753 comm="afsd" capability=1
scontext=system_u:system_r:afs_t:s0
tcontext=system_u:system_r:afs_t:s0 tclass=capability

Another strange thing, running systemctl status tells me "Can't open
/etc/mtab for writing (errno 13); not adding an entry for AFS", but I
see that /etc/mtab has the following line:

AFS /afs afs rw,relatime 0 0

I hope I have provided all the required information.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-11-2012, 02:39 PM
Daniel J Walsh
 
Default OpenAFS and SELinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/06/2012 05:34 AM, suvayu ali wrote:
> Hi Daniel,
>
> On Thu, Jul 5, 2012 at 12:27 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
>> After turning on full auditing can you try it again and get the full
>> AVC, including the PATH record.
>
> On a freshly booted system, I turned on full auditing like this:
>
> # auditctl -w /etc/shadow -p w
>
> Then I started openafs like this:
>
> # systemctl start openafs.service
>
> which generated an AVC denial (output below).
>
> # ausearch -m avc -ts recent
>
> time->Fri Jul 6 11:20:49 2012
>
> type=PATH msg=audit(1341566449.720:133): item=0 name="/etc/mtab"
> inode=36536 dev=00:03 mode=0100444 ouid=0 ogid=0 rdev=00:00
> obj=system_u:system_r:afs_t:s0
>
> type=CWD msg=audit(1341566449.720:133): cwd="/"
>
> type=SYSCALL msg=audit(1341566449.720:133): arch=c000003e syscall=2
> success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=1 ppid=2752
> pid=2753 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0
> fsgid=0 tty=(none) ses=4294967295 comm="afsd" exe="/usr/sbin/afsd"
> subj=system_u:system_r:afs_t:s0 key=(null)
>
> type=AVC msg=audit(1341566449.720:133): avc: denied { dac_override } for
> pid=2753 comm="afsd" capability=1 scontext=system_u:system_r:afs_t:s0
> tcontext=system_u:system_r:afs_t:s0 tclass=capability
>
> Another strange thing, running systemctl status tells me "Can't open
> /etc/mtab for writing (errno 13); not adding an entry for AFS", but I see
> that /etc/mtab has the following line:
>
> AFS /afs afs rw,relatime 0 0
>
> I hope I have provided all the required information.
>


ls -l /etc/mtab It should be world readable.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/9kDcACgkQrlYvE4MpobOa6wCgnrdnRdhH5jcWHj946A522MlG
BIMAn1wIlOXqS/Hq8TaFNd4FFYT9tCVb
=J+mB
-----END PGP SIGNATURE-----
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-11-2012, 02:46 PM
suvayu ali
 
Default OpenAFS and SELinux

On Wed, Jul 11, 2012 at 4:39 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
>
> On 07/06/2012 05:34 AM, suvayu ali wrote:
>> Hi Daniel,
>>
>> On Thu, Jul 5, 2012 at 12:27 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
>>> After turning on full auditing can you try it again and get the full
>>> AVC, including the PATH record.
>>
>> On a freshly booted system, I turned on full auditing like this:
>>
>> # auditctl -w /etc/shadow -p w
>>
>> Then I started openafs like this:
>>
>> # systemctl start openafs.service
>>
>> which generated an AVC denial (output below).
>>
>> # ausearch -m avc -ts recent
>>
>> time->Fri Jul 6 11:20:49 2012
>>
>> type=PATH msg=audit(1341566449.720:133): item=0 name="/etc/mtab"
>> inode=36536 dev=00:03 mode=0100444 ouid=0 ogid=0 rdev=00:00
>> obj=system_u:system_r:afs_t:s0
>>
>> type=CWD msg=audit(1341566449.720:133): cwd="/"
>>
>> type=SYSCALL msg=audit(1341566449.720:133): arch=c000003e syscall=2
>> success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=1 ppid=2752
>> pid=2753 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0
>> fsgid=0 tty=(none) ses=4294967295 comm="afsd" exe="/usr/sbin/afsd"
>> subj=system_u:system_r:afs_t:s0 key=(null)
>>
>> type=AVC msg=audit(1341566449.720:133): avc: denied { dac_override } for
>> pid=2753 comm="afsd" capability=1 scontext=system_u:system_r:afs_t:s0
>> tcontext=system_u:system_r:afs_t:s0 tclass=capability
>>
>> Another strange thing, running systemctl status tells me "Can't open
>> /etc/mtab for writing (errno 13); not adding an entry for AFS", but I see
>> that /etc/mtab has the following line:
>>
>> AFS /afs afs rw,relatime 0 0
>>
>
> ls -l /etc/mtab It should be world readable.
>

It is world readable.

# ls -l /etc/mtab
lrwxrwxrwx. 1 root root 12 Jun 28 09:53 /etc/mtab -> /proc/mounts
# ls -l /proc/mounts
lrwxrwxrwx. 1 root root 11 Jul 11 16:43 /proc/mounts -> self/mounts
# ls -l /proc/self/mounts
-r--r--r--. 1 root root 0 Jul 11 16:43 /proc/self/mounts

The strange thing is, despite the error message I can access my afs
directory (after I get my Kerberos credentials).

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-11-2012, 03:13 PM
Daniel J Walsh
 
Default OpenAFS and SELinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/11/2012 10:46 AM, suvayu ali wrote:
> On Wed, Jul 11, 2012 at 4:39 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
>>
>> On 07/06/2012 05:34 AM, suvayu ali wrote:
>>> Hi Daniel,
>>>
>>> On Thu, Jul 5, 2012 at 12:27 PM, Daniel J Walsh <dwalsh@redhat.com>
>>> wrote:
>>>> After turning on full auditing can you try it again and get the full
>>>> AVC, including the PATH record.
>>>
>>> On a freshly booted system, I turned on full auditing like this:
>>>
>>> # auditctl -w /etc/shadow -p w
>>>
>>> Then I started openafs like this:
>>>
>>> # systemctl start openafs.service
>>>
>>> which generated an AVC denial (output below).
>>>
>>> # ausearch -m avc -ts recent
>>>
>>> time->Fri Jul 6 11:20:49 2012
>>>
>>> type=PATH msg=audit(1341566449.720:133): item=0 name="/etc/mtab"
>>> inode=36536 dev=00:03 mode=0100444 ouid=0 ogid=0 rdev=00:00
>>> obj=system_u:system_r:afs_t:s0
>>>
>>> type=CWD msg=audit(1341566449.720:133): cwd="/"
>>>
>>> type=SYSCALL msg=audit(1341566449.720:133): arch=c000003e syscall=2
>>> success=no exit=-13 a0=42402b a1=80442 a2=1b6 a3=238 items=1 ppid=2752
>>> pid=2753 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0
>>> sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="afsd"
>>> exe="/usr/sbin/afsd" subj=system_u:system_r:afs_t:s0 key=(null)
>>>
>>> type=AVC msg=audit(1341566449.720:133): avc: denied { dac_override }
>>> for pid=2753 comm="afsd" capability=1
>>> scontext=system_u:system_r:afs_t:s0 tcontext=system_u:system_r:afs_t:s0
>>> tclass=capability
>>>
>>> Another strange thing, running systemctl status tells me "Can't open
>>> /etc/mtab for writing (errno 13); not adding an entry for AFS", but I
>>> see that /etc/mtab has the following line:
>>>
>>> AFS /afs afs rw,relatime 0 0
>>>
>>
>> ls -l /etc/mtab It should be world readable.
>>
>
> It is world readable.
>
> # ls -l /etc/mtab lrwxrwxrwx. 1 root root 12 Jun 28 09:53 /etc/mtab ->
> /proc/mounts # ls -l /proc/mounts lrwxrwxrwx. 1 root root 11 Jul 11 16:43
> /proc/mounts -> self/mounts # ls -l /proc/self/mounts -r--r--r--. 1 root
> root 0 Jul 11 16:43 /proc/self/mounts
>
> The strange thing is, despite the error message I can access my afs
> directory (after I get my Kerberos credentials).
>

Well I guess we should dontaudit it then, and open it as a bug on the Kernel,
although since AFS is not adopted into the kernel, not sure how much people
will look at it.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/9mCEACgkQrlYvE4MpobMWJgCeLi1uSoYCXvyPjHsHNEKwCsL4
BgsAoLBJyxofM0tfH8N9jsKjX1mSxLmj
=NY/v
-----END PGP SIGNATURE-----
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 11:25 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org