Copyright | © 2013-2014 Nicola Squartini |
---|---|
License | BSD3 |
Maintainer | Nicola Squartini <tensor5@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Support for POSIX.1e Access Control Lists (ACL), defined in section 23 of the draft standard IEEE Std 1003.1e.
- data Permset = Permset {}
- emptyPermset :: Permset
- fullPermset :: Permset
- unionPermsets :: Permset -> Permset -> Permset
- intersectPermsets :: Permset -> Permset -> Permset
- data ACL
- = MinimumACL { }
- | ExtendedACL { }
- longTextForm :: ACL -> String
- shortTextFrom :: ACL -> String
- getACL :: FilePath -> IO ACL
- getDefaultACL :: FilePath -> IO (Maybe ACL)
- fdGetACL :: Fd -> IO ACL
- setACL :: FilePath -> ACL -> IO ()
- setDefaultACL :: FilePath -> ACL -> IO ()
- fdSetACL :: Fd -> ACL -> IO ()
- deleteDefaultACL :: FilePath -> IO ()
Documentation
A combination of read, write and execute permissions.
emptyPermset :: Permset Source #
No permission.
fullPermset :: Permset Source #
Read, write and execute permissions.
unionPermsets :: Permset -> Permset -> Permset Source #
Give a permission if any of the two arguments grant that permission.
intersectPermsets :: Permset -> Permset -> Permset Source #
Give a permission if both the arguments grant that permission.
Represent a valid ACL as defined in POSIX.1e. The
instance is
defined to output the Short Text Form of the ACL (see section 23.3.2 of
IEEE Std 1003.1e),
while the Show
instance is defined to be able to parse both the long and
short text form (Read
only parses valid ACLs).read
longTextForm :: ACL -> String Source #
Convert an ACL to its Long Text Form (see section 23.3.1 of IEEE Std 1003.1e).
shortTextFrom :: ACL -> String Source #
Convert an ACL to its Short Text Form (see section 23.3.2 of IEEE Std 1003.1e).
Get and set ACLs
getDefaultACL :: FilePath -> IO (Maybe ACL) Source #
Retrieve the default ACL from a directory (return
if there is
no default ACL).Nothing
deleteDefaultACL :: FilePath -> IO () Source #
Delete the default ACL from a directory.
Call to acl_delete_def_file()
.