New interface requirement: dvb

I’ve been working on snapping TVHeadend. This service interacts with hardware under the /dev/dvb directory for TV Capture cards (at least in Europe - I don’t know if the US ATSC cards have a different dev namespace). Specifically it needs write access to /dev/dvb/adapter<n>/frontend<i> where n and i are numbers indicating the adapter and frontend on the adapter to allow for multiple cards and multiple tuners per card.

Also needed is read access to /dev/dvb/adapter<n>/dvr<i> and write access to /dev/dvb/adapter<n>/demux<i>.

= AppArmor =
Time: Jan 11 15:35:01
Log: apparmor="ALLOWED" operation="open" profile="snap.tvheadend.tvheadend" name="/dev/dvb/adapter1/frontend0" pid=22807 comm="tvheadend" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
File: /dev/dvb/adapter1/frontend0 (write)

= AppArmor =
Time: Jan 11 15:35:01
Log: apparmor="ALLOWED" operation="open" profile="snap.tvheadend.tvheadend" name="/dev/dvb/adapter0/frontend0" pid=22807 comm="tvheadend" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
File: /dev/dvb/adapter0/frontend0 (write)

= AppArmor =
Time: Jan 11 15:37:24
Log: apparmor="ALLOWED" operation="open" profile="snap.tvheadend.tvheadend" name="/dev/dvb/adapter0/dvr0" pid=22807 comm="tvh:lnxdvb-fron" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
File: /dev/dvb/adapter0/dvr0 (read)

= AppArmor =
Time: Jan 11 15:37:24
Log: apparmor="ALLOWED" operation="open" profile="snap.tvheadend.tvheadend" name="/dev/dvb/adapter0/demux0" pid=22807 comm="tvh:lnxdvb-fron" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
File: /dev/dvb/adapter0/demux0 (write)

(note they’re listed as ALLOWED in the log above due to devmode)

Last updated 5 months ago. Help improve this document in the forum.