News for hackers. Stuff that matters.
Re:Application Container Security Guide [pdf] by paulddraper on Monday November 20, 2017 @05:11PM (#15743782)
AppArmor is probably a good product.

Unfortunately, I've been left with a bad taste.

MySQL Ubuntu packages pull in AppArmor by default - BY DEFAULT - and include a profile that doesn't let you put your data dir anywhere except for one particular location. And it's virtually impossible to tell why MySQL can write to THAT LOCATION RIGHT THERE where is clearly has the appropriate permissions.

Re:Application Container Security Guide [pdf] by SteveNuts on Monday November 20, 2017 @08:00PM (#15744727)
Isn't that one of the main functions of a Mandatory ACL tool like AppArmor/SELinux - not allowing a program to operate outside of the normal confines?

I'd be happy to know it was working as indented, and a short google would lead you to the answer. In fact, Digital Ocean's documentation is the first result and it's right there in the steps.

Re:Application Container Security Guide [pdf] by paulddraper on Monday November 20, 2017 @10:26PM (#15745280)
It is the purpose of AppArmor. But in normal land, we just expect documented MySQL options to work.

It really was insane for MySQL package maintainers to make AppArmor the default experience. It ought to have been a separate package, where people that wanted AppArmor could have AppArmor.

Re:Application Container Security Guide [pdf] by jlgaddis on Monday November 20, 2017 @05:31PM (#15743934)
What prevents you from updating the profile?
Re:Application Container Security Guide [pdf] by mjevans on Monday November 20, 2017 @06:22PM (#15744299)
The error messages you get are NOT helpful in allowing you to figure out what just went wrong, so if you don't know about it there's a huge cognitive gap because things that SHOULD work just don't for no valid reason.

Denials by AppArmor (or any other ACL addition) really should have a more verbose diagnostic message AND a dedicated ERRNO that is different from the standard ones.

Re:Application Container Security Guide [pdf] by brazzledazzle on Monday November 20, 2017 @07:56PM (#15744709)
This can also cause a bunch of fun errors (on installation no less) when you have custom PAM plugins. At least last time I had to deal with that (might have been as long ago as 12.04).