| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.OSTree.Objects.SePolicy
Description
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
- 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, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getSePolicyPath :: (MonadIO m, IsSePolicy o) => o -> m File
- constructSePolicyRootfsDfd :: (IsSePolicy o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSePolicyRootfsDfd :: (MonadIO m, IsSePolicy o) => o -> m Int32
Exported types
Memory-managed wrapper type.
Instances
| Eq SePolicy Source # | |
| GObject SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
| ManagedPtrNewtype SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy Methods toManagedPtr :: SePolicy -> ManagedPtr SePolicy | |
| TypedObject SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy Methods glibType :: IO GType | |
| IsGValue SePolicy Source # | Convert |
Defined in GI.OSTree.Objects.SePolicy | |
| HasParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
| type ParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy type ParentTypes SePolicy = '[Object, Initable] | |
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
Overloaded methods
fscreateconCleanup
sePolicyFscreateconCleanup Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Ptr () |
|
| -> m () |
Cleanup function for sePolicySetfscreatecon.
getCsum
Arguments
| :: (HasCallStack, MonadIO m, IsSePolicy a) | |
| => a | |
| -> m Text | Returns: Checksum of current policy |
No description available in the introspection data.
Since: 2016.5
getLabel
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m, IsSePolicy a) | |
| => a | |
| -> m Text | Returns: Type of current policy |
No description available in the introspection data.
getPath
Arguments
| :: (HasCallStack, MonadIO m, IsSePolicy a) | |
| => a | |
| -> m File | Returns: Path to rootfs |
No description available in the introspection data.
new
Arguments
| :: (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
Arguments
| :: (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.
Since: 2017.4
restorecon
Arguments
| :: (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 #
Arguments
| :: (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, MonadIO m, IsFile a) => a -> m (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, MonadIO m) => Int32 -> m (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