Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it normal if VLC wants to write into a mkv video ? [YES]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Tue Dec 22, 2020 9:28 pm    Post subject: Is it normal if VLC wants to write into a mkv video ? [YES] Reply with quote

... without any actions from my side causing this (editing or something else).

Today I had watched a video from youtube (downladed with youtube-dl into a .mkv-file). Later I saw in dmesg a very new audit from apparmor (my vlc profile allows only reading video files):
Code:
Dec 22 22:07:24 localhost kernel: [43218.558766] audit: type=1400 audit(1608671244.589:450): apparmor="DENIED" operation="open" profile="vlc" name="/hd/Youtube/*******.mkv" pid=769 comm="vlc" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

Does someone knows the mkv-format and knows if this is regular or a "bad" file ? (I must add that I never saw before a write attempt from vlc to a video file).

Thanks in advance.


Last edited by pietinger on Wed Dec 23, 2020 1:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Dec 23, 2020 2:41 am    Post subject: Reply with quote

Use 'strace' to find out what really happens.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Wed Dec 23, 2020 1:04 pm    Post subject: Reply with quote

I always forget strace - thanks for reminding me, mike. This brought me to my own mistake:

Its the filename !

The file named: "Giulia Falcone - SOS d'un terrien en détresse - Daniel Balavoine-fyMkoB29INQ.webm" brings me:
Code:
Dec 23 13:51:01 localhost kernel: [ 7516.830671] audit: type=1400 audit(1608727861.579:73): apparmor="DENIED" operation="open" profile="vlc" name=2F686F6D652F70657465722F4D757369632F4769756C69612046616C636F6E65202D20534F53206427756E207465727269656E20656E2064C3A974726573736520202D202044616E69656C2042616C61766F696E652D66794D6B6F423239494E512E7765626D pid=5942 comm="vlc" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000


When renaming the same file to "fyMkoB29INQ.webm" I have:
Code:
Dec 23 13:50:03 localhost kernel: [ 7458.515307] audit: type=1400 audit(1608727803.262:70): apparmor="DENIED" operation="open" profile="vlc" name="/home/peter/test/fyMkoB29INQ.webm" pid=5889 comm="vlc" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

So, vlc tries to write in every file. I close this.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Dec 23, 2020 1:14 pm    Post subject: Reply with quote

pietinger wrote:
So, vlc tries to write in every file. I close this.

Well, not on my machine. Strace shows that vlc opens the file in read only mode.
Code:
3403  openat(AT_FDCWD, "/tmp/Rammstein - Rosenrot.mkv", O_RDONLY|O_NONBLOCK|O_CLOEXEC <unfinished ...>


Last edited by mike155 on Wed Dec 23, 2020 2:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Wed Dec 23, 2020 2:04 pm    Post subject: Reply with quote

Hmmm ... strange ... I have (stable system):
Code:
 ~ $ vlc --version
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum