| Safe Haskell | None |
|---|
System.Posix.ACL
Contents
Description
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 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.
No permission.
Read, write and execute permissions.
unionPermsets :: Permset -> Permset -> PermsetSource
Give a permission if any of the two arguments grant that permission.
intersectPermsets :: Permset -> Permset -> PermsetSource
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 Long Text Form of the ACL
(section 23.3.1), while the Show instance is defined to be able
to parse both the long and short text form.
Read
Constructors
| MinimumACL | |
Fields | |
| ExtendedACL | |
Fields
| |
longTextForm :: ACL -> StringSource
Convert an ACL to its Long Text Form (see section 23.3.1 of IEEE Std 1003.1e).
shortTextFrom :: ACL -> StringSource
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 ACLSource
Retrieve the default ACL from a directory.
setDefaultACL :: FilePath -> ACL -> IO ()Source
Set the default ACL for a directory.
deleteDefaultACL :: FilePath -> IO ()Source
Delete the default ACL from a directory.