mirror of
https://github.com/altlinux/admc.git
synced 2025-01-21 14:03:42 +03:00
Declare SecurityRight struct and add CommonTaskManager global
This commit is contained in:
parent
05ea44ac0e
commit
ee38f6102f
@ -28,6 +28,7 @@
|
|||||||
#include "samba/security_descriptor.h"
|
#include "samba/security_descriptor.h"
|
||||||
|
|
||||||
#include "ad_filter.h"
|
#include "ad_filter.h"
|
||||||
|
#include "common_task_manager.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
@ -158,6 +159,8 @@ const QList<uint32_t> common_rights_list = {
|
|||||||
// and when reading it.
|
// and when reading it.
|
||||||
#define GENERIC_READ_FIXED (SEC_ADS_GENERIC_READ & ~SEC_ADS_LIST_OBJECT)
|
#define GENERIC_READ_FIXED (SEC_ADS_GENERIC_READ & ~SEC_ADS_LIST_OBJECT)
|
||||||
|
|
||||||
|
CommonTaskManager *common_task_manager = new CommonTaskManager();
|
||||||
|
|
||||||
SecurityRightState::SecurityRightState(const bool data_arg[SecurityRightStateInherited_COUNT][SecurityRightStateType_COUNT]) {
|
SecurityRightState::SecurityRightState(const bool data_arg[SecurityRightStateInherited_COUNT][SecurityRightStateType_COUNT]) {
|
||||||
for (int inherited = 0; inherited < SecurityRightStateInherited_COUNT; inherited++) {
|
for (int inherited = 0; inherited < SecurityRightStateInherited_COUNT; inherited++) {
|
||||||
for (int type = 0; type < SecurityRightStateType_COUNT; type++) {
|
for (int type = 0; type < SecurityRightStateType_COUNT; type++) {
|
||||||
|
@ -36,6 +36,7 @@ class AdConfig;
|
|||||||
class AdObject;
|
class AdObject;
|
||||||
struct security_descriptor;
|
struct security_descriptor;
|
||||||
struct dom_sid;
|
struct dom_sid;
|
||||||
|
class CommonTaskManager;
|
||||||
typedef void TALLOC_CTX;
|
typedef void TALLOC_CTX;
|
||||||
|
|
||||||
extern const QList<QString> well_known_sid_list;
|
extern const QList<QString> well_known_sid_list;
|
||||||
@ -80,6 +81,9 @@ struct SecurityRight {
|
|||||||
(another.flags == flags);
|
(another.flags == flags);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Q_DECLARE_METATYPE(SecurityRight)
|
||||||
|
|
||||||
|
extern CommonTaskManager *common_task_manager;
|
||||||
|
|
||||||
QString ad_security_get_well_known_trustee_name(const QByteArray &trustee);
|
QString ad_security_get_well_known_trustee_name(const QByteArray &trustee);
|
||||||
QString ad_security_get_trustee_name(AdInterface &ad, const QByteArray &trustee);
|
QString ad_security_get_trustee_name(AdInterface &ad, const QByteArray &trustee);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user