Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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 (Maybe Text)
- sePolicyGetLabel :: (HasCallStack, MonadIO m, IsSePolicy a, IsCancellable b) => a -> Text -> Word32 -> Maybe b -> m (Maybe Text)
- sePolicyGetName :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> m (Maybe Text)
- sePolicyGetPath :: (HasCallStack, MonadIO m, IsSePolicy a) => a -> m (Maybe 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
- sePolicyNewFromCommit :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m SePolicy
- sePolicyRestorecon :: (HasCallStack, MonadIO m, IsSePolicy a, IsFileInfo b, IsFile c, IsCancellable d) => a -> Text -> Maybe b -> c -> [SePolicyRestoreconFlags] -> Maybe d -> m (Maybe 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 (Maybe 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 | |
HasParentTypes SePolicy Source # | |
Defined in GI.OSTree.Objects.SePolicy | |
IsGValue (Maybe SePolicy) Source # | Convert |
Defined in GI.OSTree.Objects.SePolicy Methods 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 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
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 #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> m () |
Cleanup function for sePolicySetfscreatecon
.
getCsum
Arguments
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a | |
-> m (Maybe 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 (Maybe 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 (Maybe Text) | Returns: Type of current policy |
No description available in the introspection data.
getPath
Arguments
:: (HasCallStack, MonadIO m, IsSePolicy a) | |
=> a |
|
-> m (Maybe File) | Returns: Path to rootfs |
This API should be considered deprecated, because it's supported for policy objects to be created from file-descriptor relative paths, which may not be globally accessible.
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
newFromCommit
sePolicyNewFromCommit Source #
Arguments
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m SePolicy | Returns: A new policy (Can throw |
Extract the SELinux policy from a commit object via a partial checkout. This is useful for labeling derived content as separate commits.
This function is the backend of ostree_repo_commit_modifier_set_sepolicy_from_commit()
.
restorecon
Arguments
:: (HasCallStack, MonadIO m, IsSePolicy a, IsFileInfo b, IsFile c, IsCancellable d) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> c |
|
-> [SePolicyRestoreconFlags] |
|
-> Maybe d |
|
-> m (Maybe 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 (Maybe 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