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

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.

Signed-off-by: Rafal Krypa <875f2afab983118b44e45bad4cf04b04767e9f4a@samsung.com>

smack-team/smack,jobol/smack,smack-team/smack,jobol/smack