34 #ifndef ACCESSCONTROLMANAGERHELPER_H 35 #define ACCESSCONTROLMANAGERHELPER_H 37 #include <QDBusConnection> 38 #include <QDBusContext> 39 #include <QDBusMessage> 42 #include "SignOn/abstract-access-control-manager.h" 73 static pid_t
pidOfPeer(
const QDBusContext &peerContext);
74 static pid_t
pidOfPeer(
const QDBusConnection &peerConnection,
75 const QDBusMessage &peerMessage);
88 const QDBusMessage &peerMessage,
89 const quint32 identityId);
102 const QDBusMessage &peerMessage,
103 const quint32 identityId);
115 const QDBusMessage &peerMessage,
132 const QDBusMessage &peerMessage,
133 const quint32 ownerIdentityId)
145 const QDBusMessage &peerMessage);
154 QString
appIdOfPeer(
const QDBusConnection &peerConnection,
155 const QDBusMessage &peerMessage);
168 const QDBusMessage &peerMessage,
169 const QString securityContext);
182 const QDBusMessage &peerMessage,
183 const QStringList secContexts);
185 SignOn::AccessReply *
187 const QDBusMessage &peerMessage,
191 SignOn::AbstractAccessControlManager *m_acManager;
197 #endif // ACCESSCONTROLMANAGER_H
bool peerHasOneOfAccesses(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const QStringList secContexts)
Checks if a client process is allowed to access at least one object from the list with a certain secu...
QString appIdOfPeer(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage)
Looks up for the application identifier of a specific client process.
Daemon side representation of authentication session.
static AccessControlManagerHelper * instance()
bool isPeerKeychainWidget(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage)
~AccessControlManagerHelper()
AccessControlManagerHelper(SignOn::AbstractAccessControlManager *acManager)
SignOn::AccessReply * requestAccessToIdentity(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, quint32 id)
static pid_t pidOfPeer(const QDBusContext &peerContext)
bool isPeerAllowedToUseAuthSession(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const SignonAuthSession &authSession)
Checks if a specific process is allowed to use the SignonAuthSession functionality.
IdentityOwnership
Specifies the owner relationship of an application over a specific identity, or the lack of ownership...
bool isPeerAllowedToUseAuthSession(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const quint32 ownerIdentityId)
Checks if a specific process is allowed to use the SignonAuthSession functionality.
IdentityOwnership isPeerOwnerOfIdentity(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const quint32 identityId)
Checks if a specific process is the owner of a SignonIdentity, thus having full control over it...
bool isPeerAllowedToAccess(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const QString securityContext)
Checks if a client process is allowed to access objects with a certain security context.
Contains helper functions related to Access Control.
bool isPeerAllowedToUseIdentity(const QDBusConnection &peerConnection, const QDBusMessage &peerMessage, const quint32 identityId)
Checks if a client process is allowed to use a specific SignonIdentity.