smack-team / smack

Smack userspace
GNU Lesser General Public License v2.1
41 stars 33 forks source link

libsmack: fix smack_have_access() (regression in d7319c71) #100

Closed rafal-krypa closed 10 years ago

rafal-krypa commented 10 years ago

Commit d7319c71 introduced an internal function for opening smackfs files, when there is a long and short label version. The new function always opens the file write only, but smack_have access() requires O_RDWR. The internal function is now extended to take argument with file access mode.