Giter Site home page Giter Site logo

Comments (4)

rhatdan avatar rhatdan commented on July 18, 2024 1

These AVCs are not container specific they would be in selinux-policy.

dac_override usually means the process does not have access to the object without via normal permissions. IT The root user does not have access to the object. What is the permissions on

/var/lib/iscsi/nodes/iqn.2019-10.io.longhorn:pvc-92f33fde-1363-4619-aca4-823bfd8f444f/10.42.0.67,3260,1/

Who owns it I would figure root does not have read/write or execute access and that is causing the DAC_OVERRIDE>

from container-selinux.

rhatdan avatar rhatdan commented on July 18, 2024

Please attach the AVC messages.
ausearch -m avc -ts recent

from container-selinux.

rhatdan avatar rhatdan commented on July 18, 2024

Ping

from container-selinux.

mynktl avatar mynktl commented on July 18, 2024

Hi @rhatdan
Apologies for the delayed response.

I don't have environment now. Here is old output which I collected before.

type=PROCTITLE msg=audit(1685680051.117:90103): proctitle=6E73656E746572002D2D6D6F756E743D2F686F73742F70726F632F312F6E732F6D6E74002D2D6E65743D2F686F73742F70726F632F312F6E732F6E657400697363736961646D002D6D00646973636F76657279002D740073656E6474617267657473002D700031302E34322E302E3637
type=PATH msg=audit(1685680051.117:90103): item=0 name="/var/lib/iscsi/nodes/iqn.2019-10.io.longhorn:pvc-a5f752cd-09bb-4d37-a517-ec83704b25d9/10.42.0.67,3260,1/" inode=8412064 dev=fd:08 mode=040600 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:iscsi_var_lib_t:s0 nametype=PARENT cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
type=CWD msg=audit(1685680051.117:90103): cwd="/"
type=SYSCALL msg=audit(1685680051.117:90103): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=561977481090 a2=241 a3=1b6 items=1 ppid=61338 pid=61427 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iscsiadm" exe="/usr/sbin/iscsiadm" subj=system_u:system_r:iscsid_t:s0 key=(null)
type=AVC msg=audit(1685680051.117:90103): avc:  denied  { dac_override } for  pid=61427 comm="iscsiadm" capability=1  scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:system_r:iscsid_t:s0 tclass=capability permissive=0
----
time->Fri Jun  2 04:27:31 2023
type=PROCTITLE msg=audit(1685680051.117:90106): proctitle=6E73656E746572002D2D6D6F756E743D2F686F73742F70726F632F312F6E732F6D6E74002D2D6E65743D2F686F73742F70726F632F312F6E732F6E657400697363736961646D002D6D00646973636F76657279002D740073656E6474617267657473002D700031302E34322E302E3637
type=PATH msg=audit(1685680051.117:90106): item=0 name="/var/lib/iscsi/nodes/iqn.2019-10.io.longhorn:pvc-92f33fde-1363-4619-aca4-823bfd8f444f/10.42.0.67,3260,1/" inode=12603867 dev=fd:08 mode=040600 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:iscsi_var_lib_t:s0 nametype=PARENT cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
type=CWD msg=audit(1685680051.117:90106): cwd="/"
type=SYSCALL msg=audit(1685680051.117:90106): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=561977481090 a2=241 a3=1b6 items=1 ppid=61338 pid=61427 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iscsiadm" exe="/usr/sbin/iscsiadm" subj=system_u:system_r:iscsid_t:s0 key=(null)
type=AVC msg=audit(1685680051.117:90106): avc:  denied  { dac_override } for  pid=61427 comm="iscsiadm" capability=1  scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:system_r:iscsid_t:s0 tclass=capability permissive=0

Thanks for looking into this!

from container-selinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.