Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype SePolicy = SePolicy (ManagedPtr SePolicy)
- class (GObject o, IsDescendantOf SePolicy o) => IsSePolicy o
- toSePolicy :: (MonadIO m, IsSePolicy o) => o -> m SePolicy
- noSePolicy :: Maybe SePolicy
- sePolicyFscreateconCleanup :: (HasCallStack, MonadIO m) => Ptr () -> m ()
- sePolicyGetCsum :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> m Text
- sePolicyGetLabel :: (HasCallStack, MonadIO m, IsSePolicy a, IsCancellable b) => a -> Text -> Word32 -> Maybe b -> m Text
- sePolicyGetName :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> m Text
- sePolicyGetPath :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> m File
- sePolicyNew :: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) => a -> Maybe b -> m SePolicy
- sePolicyNewAt :: (HasCallStack, MonadIO m, IsCancellable a) => Int32 -> Maybe a -> m SePolicy
- sePolicyRestorecon :: (HasCallStack, MonadIO m, IsSePolicy a, IsFileInfo b, IsFile c, IsCancellable d) => a -> Text -> Maybe b -> c -> [SePolicyRestoreconFlags] -> Maybe d -> m Text
- sePolicySetfscreatecon :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> Text -> Word32 -> m ()
- constructSePolicyPath :: (IsSePolicy o, IsFile a) => a -> IO (GValueConstruct o)
- getSePolicyPath :: (MonadIO m, IsSePolicy o) => o -> m File
- constructSePolicyRootfsDfd :: IsSePolicy o => Int32 -> IO (GValueConstruct o)
- getSePolicyRootfsDfd :: (MonadIO m, IsSePolicy o) => o -> m Int32
Exported types
Memory-managed wrapper type.
Instances
GObject SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy gobjectType :: IO GType | |
HasParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
type ParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy |
class (GObject o, IsDescendantOf SePolicy o) => IsSePolicy o Source #
Type class for types which can be safely cast to SePolicy
, for instance with toSePolicy
.
Instances
(GObject o, IsDescendantOf SePolicy o) => IsSePolicy o Source # | |
Defined in GI.OSTree.Objects.SePolicy |
toSePolicy :: (MonadIO m, IsSePolicy o) => o -> m SePolicy Source #
Methods
fscreateconCleanup
sePolicyFscreateconCleanup Source #
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> m () |
Cleanup function for sePolicySetfscreatecon
.
getCsum
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a | |
-> m Text | Returns: Checksum of current policy |
No description available in the introspection data.
getLabel
:: (HasCallStack, MonadIO m, IsSePolicy a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> Maybe b |
|
-> m Text | (Can throw |
Store in outLabel
the security context for the given relpath
and
mode unixMode
. If the policy does not specify a label, Nothing
will be returned.
getName
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a | |
-> m Text | Returns: Type of current policy |
No description available in the introspection data.
getPath
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a | |
-> m File | Returns: Path to rootfs |
No description available in the introspection data.
new
:: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m SePolicy | Returns: An accessor object for SELinux policy in root located at |
No description available in the introspection data.
newAt
:: (HasCallStack, MonadIO m, IsCancellable a) | |
=> Int32 |
|
-> Maybe a |
|
-> m SePolicy | Returns: An accessor object for SELinux policy in root located at |
No description available in the introspection data.
restorecon
:: (HasCallStack, MonadIO m, IsSePolicy a, IsFileInfo b, IsFile c, IsCancellable d) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> c |
|
-> [SePolicyRestoreconFlags] |
|
-> Maybe d |
|
-> m Text | (Can throw |
Reset the security context of target
based on the SELinux policy.
setfscreatecon
sePolicySetfscreatecon Source #
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> m () | (Can throw |
No description available in the introspection data.
Properties
path
No description available in the introspection data.
constructSePolicyPath :: (IsSePolicy o, IsFile a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “path
” property. This is rarely needed directly, but it is used by new
.
getSePolicyPath :: (MonadIO m, IsSePolicy o) => o -> m File Source #
Get the value of the “path
” property.
When overloading is enabled, this is equivalent to
get
sePolicy #path
rootfsDfd
No description available in the introspection data.
constructSePolicyRootfsDfd :: IsSePolicy o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “rootfs-dfd
” property. This is rarely needed directly, but it is used by new
.
getSePolicyRootfsDfd :: (MonadIO m, IsSePolicy o) => o -> m Int32 Source #
Get the value of the “rootfs-dfd
” property.
When overloading is enabled, this is equivalent to
get
sePolicy #rootfsDfd