Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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
- 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 toManagedPtr :: SePolicy -> ManagedPtr SePolicy | |
TypedObject SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
HasParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
IsGValue (Maybe SePolicy) Source # | Convert |
Defined in GI.OSTree.Objects.SePolicy gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SePolicy -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, init, isFloating, notify, notifyByPspec, ref, refSink, restorecon, runDispose, setfscreatecon, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCsum, getData, getLabel, getName, getPath, getProperty, getQdata.
Setters
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.
Since: 2016.5
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.
Since: 2017.4
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, 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