Results 1 to 5 of 5

Thread: vlc snap permissions for dvb?

  1. #1
    Join Date
    Jul 2019
    Beans
    6

    vlc snap permissions for dvb?

    Hi

    I'm trying to get my dvb-t usb dongle to work with 19.04. Everything is working fine, driver is loaded, and I can use scan successfully to scan for channels, and tzap to lock to a channel etc. So it's not a hardware/driver issue.

    I have vlc installed via snap and want to use it to watch dvb-t.

    However, when I start vlc channels.conf file, I get messages on screen like
    Code:
    Your input can't be opened:
    
     VLC is unable to open the MRL 'dvb-t://frequency=184500000:inversion=0:bandwidth=7:code-rate-hp=3/4:code-rate-lp=1/2:modulation=64QAM:transmission=-1:guard=1/16:hierarchy=0'. Check the log for details.
    the terminal outputs
    Code:
    [00007f7898005c40] dtv stream error: cannot access DVR: Operation not permitted
    and in the log/dmesg
    Code:
     3296.237028] audit: type=1400 audit(1564212810.027:60): apparmor="DENIED" operation="ptrace" profile="snap.vlc.vlc" pid=8189 comm="vlc" requested_mask="read" denied_mask="read" peer="unconfined"

    It looks like permissions, and smells like permissions issue, but when I go to the Ubuntu Software/Installed and look at vlc's permissions, they are all enabled.

    I'm not really familiar with snap, so hoping someone can help.
    Last edited by apg6xswhjc; 3 Weeks Ago at 12:49 AM. Reason: solved

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    17,094
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: vlc snap permissions for dvb?

    The easy answer is to uninstall the vlc snap, then install the normal Debian package using APT. This will probably solve it, assume the DVB permissions are correct outside VLC.

    If you want to fight with the snap, then learning how to manage the snap permissions will be necessary. I've read that there is a way to disable all protections in snaps. Really, it needs to be the default for many snap-packages, so they run in "monitor-only" mode and have the required permissions shipped back to the snap-package maintainers. Lots of other restrictive tools have this ability and are deployed in a cautious way initially. Canonical and the Snap guys should have paid attention and done the same.

    Breaking things should never be allowed.
    Last edited by TheFu; 3 Weeks Ago at 07:20 PM.

  3. #3
    Join Date
    May 2010
    Location
    South Gloucestershire, UK
    Beans
    3,052
    Distro
    Ubuntu Development Release

    Re: vlc snap permissions for dvb?

    Take a look at VLC not seeing TV USB Dongle and the linked thread on the snapcraft forum.
    The Bug Squad needs your help.

  4. #4
    Join Date
    Jul 2019
    Beans
    6

    Re: vlc snap permissions for dvb?

    Ahhh. Followed that link and it seems like it's been added to snap core, so I tried tried
    Code:
    sudo snap connect vlc:dvb
    , but that said vlc has no plug named dvb. So I guess the vlc snap is not setup properly to do this.

    So, I've uninstalled the snap, and sudo apt install vlc. Everything is working

    Thanks for the pointers guys!

  5. #5
    Join Date
    Jun 2007
    Beans
    17,145

    Re: vlc snap permissions for dvb?

    It may?? have been something like this

    sudo snap connect tvheadend:dvb

    The need for obscure connect commands to enable missing functionality in snaps is certainly regular user unfriendly

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •