summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Security/AccessControl/Enums.cs
blob: c52176a29bce1f4b89c1252f9a2e823316bdb9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Runtime.InteropServices;

namespace System.Security.AccessControl
{
    [Flags]
    public enum InheritanceFlags
    {
        None                     = 0x00,
        ContainerInherit         = 0x01,
        ObjectInherit            = 0x02,
    }

    [Flags]
    public enum PropagationFlags
    {
        None                     = 0x00,
        NoPropagateInherit       = 0x01,
        InheritOnly              = 0x02,
    }

    [Flags]
    public enum AuditFlags
    {
        None                    = 0x00,
        Success                 = 0x01,
        Failure                 = 0x02,
    }

    [Flags]
    public enum SecurityInfos
    {
        Owner                  = 0x00000001,
        Group                  = 0x00000002,
        DiscretionaryAcl       = 0x00000004,
        SystemAcl              = 0x00000008,

    }


    public enum ResourceType
    {
        Unknown                = 0x00,
        FileObject             = 0x01,
        Service                = 0x02,
        Printer                = 0x03,
        RegistryKey            = 0x04,
        LMShare                = 0x05,
        KernelObject           = 0x06,
        WindowObject           = 0x07,
        DSObject               = 0x08,
        DSObjectAll            = 0x09,
        ProviderDefined        = 0x0A,
        WmiGuidObject          = 0x0B,
        RegistryWow6432Key     = 0x0C,
    }

    [Flags]
    public enum AccessControlSections {
        None = 0,
        Audit = 0x1,
        Access = 0x2,
        Owner = 0x4,
        Group = 0x8,
        All = 0xF
    }

    [Flags]
    public enum AccessControlActions {
#if FEATURE_MACL
        None = 0,
        View = 1,
        Change = 2
#else
        None = 0
#endif
    }
}