gi-ostree-1.0.15: OSTree bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.OSTree.Objects.SePolicy

Description

No description available in the introspection data.

Synopsis

Exported types

newtype SePolicy Source #

Memory-managed wrapper type.

Constructors

SePolicy (ManagedPtr SePolicy) 

Instances

Instances details
Eq SePolicy Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

GObject SePolicy Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

ManagedPtrNewtype SePolicy Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

TypedObject SePolicy Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

Methods

glibType :: IO GType #

HasParentTypes SePolicy Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

IsGValue (Maybe SePolicy) Source #

Convert SePolicy to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Objects.SePolicy

type ParentTypes SePolicy Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf SePolicy o) => IsSePolicy o Source # 
Instance details

Defined in GI.OSTree.Objects.SePolicy

toSePolicy :: (MonadIO m, IsSePolicy o) => o -> m SePolicy Source #

Cast to SePolicy, for types for which this is known to be safe. For general casts, use castTo.

Methods

fscreateconCleanup

sePolicyFscreateconCleanup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Ptr ()

unused: Not used, just in case you didn't infer that from the parameter name

-> m () 

Cleanup function for sePolicySetfscreatecon.

getCsum

sePolicyGetCsum Source #

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

sePolicyGetLabel Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a, IsCancellable b) 
=> a

self: Self

-> Text

relpath: Path

-> Word32

unixMode: Unix mode

-> Maybe b

cancellable: Cancellable

-> m Text

(Can throw GError)

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

sePolicyGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a) 
=> a 
-> m Text

Returns: Type of current policy

No description available in the introspection data.

getPath

sePolicyGetPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a) 
=> a

self: A SePolicy object

-> m 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

sePolicyNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a, IsCancellable b) 
=> a

path: Path to a root directory

-> Maybe b

cancellable: Cancellable

-> m SePolicy

Returns: An accessor object for SELinux policy in root located at path (Can throw GError)

No description available in the introspection data.

newAt

sePolicyNewAt Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Int32

rootfsDfd: Directory fd for rootfs (will not be cloned)

-> Maybe a

cancellable: Cancellable

-> m SePolicy

Returns: An accessor object for SELinux policy in root located at rootfsDfd (Can throw GError)

No description available in the introspection data.

Since: 2017.4

newFromCommit

sePolicyNewFromCommit Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) 
=> a

repo: The repo

-> Text

rev: ostree ref or checksum

-> Maybe b

cancellable: Cancellable

-> m SePolicy

Returns: A new policy (Can throw GError)

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

sePolicyRestorecon Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a, IsFileInfo b, IsFile c, IsCancellable d) 
=> a

self: Self

-> Text

path: Path string to use for policy lookup

-> Maybe b

info: File attributes

-> c

target: Physical path to target file

-> [SePolicyRestoreconFlags]

flags: Flags controlling behavior

-> Maybe d

cancellable: Cancellable

-> m Text

(Can throw GError)

Reset the security context of target based on the SELinux policy.

setfscreatecon

sePolicySetfscreatecon Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a) 
=> a

self: Policy

-> Text

path: Use this path to determine a label

-> Word32

mode: Used along with path

-> m ()

(Can throw GError)

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