Skip to contentSkip to conversation

Does recvfrom(2) imply { getattr }?

DISCUSSION Ian Pilcher 2 participants 2 messages May 6, 2017 – May 8, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

I'm getting a non-fatal { getattr } denial on a UDP socket (talking to a DNS server). strace doesn't show any fstat calls on the socket, but it does show that recvfrom is being called.

Does recvfrom want getattr permission in order to retrieve the message source? (The other potential system calls are poll and ioctl(FIONREAD).)

Signature · 4 lines
========================================================================
Ian Pilcher                                         [email protected]
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
#1 lore raw
Quoted 10 lines · Ian Pilcher

I'm getting a non-fatal { getattr } denial on a UDP socket (talking to a
DNS server).  strace doesn't show any fstat calls on the socket, but it
does show that recvfrom is being called.

Does recvfrom want getattr permission in order to retrieve the message
source?  (The other potential system calls are poll and ioctl(FIONREAD).)

ioctl(FIONREAD) triggers a getattr permission check because it can be used to get the file size.