KACL
KACL Class Reference
#include <KACL>
Public Member Functions | |
KACL () | |
KACL (const KACL &rhs) | |
KACL (const QString &aclString) | |
KACL (mode_t basicPermissions) | |
ACLGroupPermissionsList | allGroupPermissions () const |
ACLUserPermissionsList | allUserPermissions () const |
QString | asString () const |
mode_t | basePermissions () const |
bool | isExtended () const |
bool | isValid () const |
unsigned short | maskPermissions (bool &exists) const |
unsigned short | namedGroupPermissions (const QString &name, bool *exists) const |
unsigned short | namedUserPermissions (const QString &name, bool *exists) const |
bool | operator!= (const KACL &rhs) const |
KACL & | operator= (const KACL &rhs) |
bool | operator== (const KACL &rhs) const |
unsigned short | othersPermissions () const |
unsigned short | ownerPermissions () const |
unsigned short | owningGroupPermissions () const |
bool | setACL (const QString &aclStr) |
bool | setAllGroupPermissions (const ACLGroupPermissionsList &) |
bool | setAllUserPermissions (const ACLUserPermissionsList &list) |
bool | setMaskPermissions (unsigned short) |
bool | setNamedGroupPermissions (const QString &name, unsigned short) |
bool | setNamedUserPermissions (const QString &name, unsigned short) |
bool | setOthersPermissions (unsigned short) |
bool | setOwnerPermissions (unsigned short) |
bool | setOwningGroupPermissions (unsigned short) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
The KACL class encapsulates a POSIX Access Control List.
It follows the little standard that couldn't, 1003.1e/1003.2c, which died in draft status.
a POSIX ACL encapsulation
Constructor & Destructor Documentation
◆ KACL() [1/4]
KACL::KACL | ( | const QString & | aclString | ) |
◆ KACL() [2/4]
◆ KACL() [3/4]
KACL::KACL | ( | mode_t | basicPermissions | ) |
◆ KACL() [4/4]
KACL::KACL | ( | ) |
Member Function Documentation
◆ allGroupPermissions()
ACLGroupPermissionsList KACL::allGroupPermissions | ( | ) | const |
◆ allUserPermissions()
ACLUserPermissionsList KACL::allUserPermissions | ( | ) | const |
◆ asString()
QString KACL::asString | ( | ) | const |
◆ basePermissions()
mode_t KACL::basePermissions | ( | ) | const |
◆ isExtended()
bool KACL::isExtended | ( | ) | const |
The interface to the extended ACL.
This is a mask, permissions for n named users and permissions for m named groups. Return whether the ACL contains extended entries or can be expressed using only basic file permissions.
- Returns
- whether the ACL contains extended entries
◆ isValid()
bool KACL::isValid | ( | ) | const |
◆ maskPermissions()
unsigned short KACL::maskPermissions | ( | bool & | exists | ) | const |
◆ namedGroupPermissions()
unsigned short KACL::namedGroupPermissions | ( | const QString & | name, |
bool * | exists ) const |
◆ namedUserPermissions()
unsigned short KACL::namedUserPermissions | ( | const QString & | name, |
bool * | exists ) const |
Access to the permissions entry for a named user, if such an entry exists.
If exists
is non-null, the boolean variable it points to is set to true if a matching entry exists and to false otherwise.
- Returns
- the permissions for a user entry with the name in
name
◆ operator!=()
◆ operator=()
◆ operator==()
◆ othersPermissions()
unsigned short KACL::othersPermissions | ( | ) | const |
◆ ownerPermissions()
unsigned short KACL::ownerPermissions | ( | ) | const |
◆ owningGroupPermissions()
unsigned short KACL::owningGroupPermissions | ( | ) | const |
◆ setACL()
bool KACL::setACL | ( | const QString & | aclStr | ) |
◆ setAllGroupPermissions()
bool KACL::setAllGroupPermissions | ( | const ACLGroupPermissionsList & | groups | ) |
◆ setAllUserPermissions()
bool KACL::setAllUserPermissions | ( | const ACLUserPermissionsList & | list | ) |
◆ setMaskPermissions()
bool KACL::setMaskPermissions | ( | unsigned short | v | ) |
◆ setNamedGroupPermissions()
bool KACL::setNamedGroupPermissions | ( | const QString & | name, |
unsigned short | permissions ) |
◆ setNamedUserPermissions()
bool KACL::setNamedUserPermissions | ( | const QString & | name, |
unsigned short | permissions ) |
◆ setOthersPermissions()
bool KACL::setOthersPermissions | ( | unsigned short | v | ) |
◆ setOwnerPermissions()
bool KACL::setOwnerPermissions | ( | unsigned short | v | ) |
◆ setOwningGroupPermissions()
bool KACL::setOwningGroupPermissions | ( | unsigned short | v | ) |
◆ virtual_hook()
|
protectedvirtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.