gi-ostree-1.0.2: OSTree bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.SePolicy

Contents

Description

 

Synopsis

Exported types

Methods

fscreateconCleanup

getCsum

data SePolicyGetCsumMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsSePolicy a) => MethodInfo * SePolicyGetCsumMethodInfo a signature Source # 

sePolicyGetCsum Source #

Arguments

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

Returns: Checksum of current policy

No description available in the introspection data.

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

data SePolicyGetNameMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsSePolicy a) => MethodInfo * SePolicyGetNameMethodInfo a signature Source # 

sePolicyGetName Source #

Arguments

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

Returns: Type of current policy

No description available in the introspection data.

getPath

data SePolicyGetPathMethodInfo Source #

Instances

((~) * signature (m File), MonadIO m, IsSePolicy a) => MethodInfo * SePolicyGetPathMethodInfo a signature Source # 

sePolicyGetPath Source #

Arguments

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

Returns: Path to rootfs

No description available in the introspection data.

new

sePolicyNew Source #

Arguments

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

path: Path to a root directory

-> Maybe b 
-> m SePolicy

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

No description available in the introspection data.

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

data SePolicyPathPropertyInfo Source #

Instances

AttrInfo SePolicyPathPropertyInfo Source # 
type AttrOrigin SePolicyPathPropertyInfo Source # 
type AttrLabel SePolicyPathPropertyInfo Source # 
type AttrGetType SePolicyPathPropertyInfo Source # 
type AttrBaseTypeConstraint SePolicyPathPropertyInfo Source # 
type AttrSetTypeConstraint SePolicyPathPropertyInfo Source # 
type AttrAllowedOps SePolicyPathPropertyInfo Source #