| Summary: | executable stack flag prevents use of libx264.so.148 with selinux in enforcing mode | ||
|---|---|---|---|
| Product: | Fedora | Reporter: | Isaac Hailperin <isaac.hailperin> |
| Component: | x264 | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | isaac.hailperin, kwizart, sergio |
| Priority: | P5 | ||
| Version: | 26 | ||
| Hardware: | armhfp | ||
| OS: | GNU/Linux | ||
| namespace: | |||
|
Description
Isaac Hailperin
2016-02-15 21:35:22 CET
2 questions: You always talk in arm , and in x86 ? what is the solution ? Personally I always disable selinux before begin anything > You always talk in arm , and in x86 ? On x86_64, the problem seems not to be present: $ execstack -q /usr/lib64/libx264.so.148 - /usr/lib64/libx264.so.148 I have no x86 32 bit system, so I can't tell. | > what is the solution ? The man page for execstack (http://linux.die.net/man/8/execstack) suggests that this is something that can be influenced at build time, so I guess there must be some way to build this into the spec file. The fedora packaging wiki mentions using the execstack utility during the build process: https://fedoraproject.org/wiki/Packaging_tricks#Executable_stack > Personally I always disable selinux before begin anything :) While this seems to be a common practice, I don't consider this to be a solution. The execstack flag is considered a security issue in itself (which is why its not allowed by default in fedora), so even without selinux, it shouldn't be there. I'll take a look at this. Could you try running execstack -c on the installed library in the meantime? (In reply to comment #3) > I'll take a look at this. Could you try running execstack -c on the installed > library in the meantime? Be my guest , in meantime I read your thread on packaging Mailing list about sse3 , I'd like understand if we need 2 builds for i686 ... one with sse2 other without it, can you give us your opinion ? Thanks. (In reply to comment #3) > I'll take a look at this. Could you try running execstack -c on the installed > library in the meantime? I did this (please see my original bug report, under "steps to reproduce", step 4), it is the workaround I am using. However, should there ever be an update, this would have to be done again. So building a package with the flag cleared would be my preferred solution :) (In reply to comment #5) > (In reply to comment #3) > > I'll take a look at this. Could you try running execstack -c on the installed > > library in the meantime? > > I did this (please see my original bug report, under "steps to reproduce", step > 4), it is the workaround I am using. > However, should there ever be an update, this would have to be done again. So > building a package with the flag cleared would be my preferred solution :) Right, you did. Sorry. I'm taking a closer look at the package. The issue seems to be limited to armv7 only (out of the three primary arches) and is reproducible in rawhide as well. This is fixed in x264-0.148-11.20160614gita5e06b9 built for F24+. If you still need this fixed for F23, please reopen and we'll backport. I am still on f23, but should upgrade soon, so for me the fix for f24 is sufficient. Thank you very much for looking into this and fixing it! |