Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PaX marking Blender binary downloaded from blender.org
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
niranjana_km
n00b
n00b


Joined: 15 Mar 2014
Posts: 14

PostPosted: Mon Feb 13, 2017 11:07 am    Post subject: PaX marking Blender binary downloaded from blender.org Reply with quote

To whome it is??
* If you are using hardened profile in Gentoo with hardened kernel
* If using prebuilt Blender binary downloaded from https://www.blender.org/download/
* If while importing videos into video sequence editor failing with error
Code:
Can't transform color space??? Bailing out...
not an anim:


It is because of hardened kernel (CONFIG_PAX_MPROTECT=y) preventing ffmpeg libraries (statically built into blender) from violating PaX security restrictions. That is kernel enforcing secure memory protections (MPROTECT).

you can use the 'paxctl' utilitiy to control this feature on a per file basis. Or better you can use paxmark.sh script from Gentoo. Just do the following,

1. To know the options:
Code:
# man paxctl


2. To mark, get into the directory where your blender binary exists:
Code:
# paxmark.sh m blender


3. To check the set flags:
Code:
# paxctl -v blender
## Or use the following:
# paxctl-ng -v blender


Enjoy!!

Oh wait, I figured it out by the debug output from following:
Code:
$ ./blender --debug-ffmpeg

Which had lines:
Code:
[swscaler @ 0x31d559be000] mprotect failed, cannot use fast bilinear scaler
Can't transform color space??? Bailing out...
[AVIOContext @ 0x31d54f10400] Statistics: 655419 bytes read, 2 seeks
not an anim: /home/amt/FSF_30_720p.webm



Bye!!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13493

PostPosted: Tue Feb 14, 2017 3:04 am    Post subject: Reply with quote

These files should not need to be marked. Please bug the Blender maintainer to post files which work correctly on first install.
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