MutexSecurity 클래스

정의

명명된 뮤텍스의 Windows 액세스 제어 보안을 나타냅니다. 이 클래스는 상속될 수 없습니다.

public ref class MutexSecurity sealed : System::Security::AccessControl::NativeObjectSecurity
public sealed class MutexSecurity : System.Security.AccessControl.NativeObjectSecurity
[System.Security.SecurityCritical]
public sealed class MutexSecurity : System.Security.AccessControl.NativeObjectSecurity
type MutexSecurity = class
    inherit NativeObjectSecurity
[<System.Security.SecurityCritical>]
type MutexSecurity = class
    inherit NativeObjectSecurity
Public NotInheritable Class MutexSecurity
Inherits NativeObjectSecurity
상속
특성

예제

다음 코드 예제에서는 규칙과 규칙 간의 Allow 분리를 보여 줍니다 Deny . 호환되는 규칙의 권한 조합을 보여 줍니다. 이 예제에서는 개체를 MutexSecurity 만들고, 현재 사용자에 대한 다양한 권한을 허용 및 거부하는 규칙을 추가하고, 결과 규칙 쌍을 표시합니다. 그런 다음 현재 사용자에 대한 새 권한을 허용하고 결과를 표시하여 새 권한이 기존 규칙과 병합됨을 Allow 보여 줍니다.

참고

이 예제에서는 보안 개체를 개체에 Mutex 연결하지 않습니다. 보안 개체를 연결하는 예제는 및 Mutex.SetAccessControl에서 Mutex.GetAccessControl 찾을 수 있습니다.

using System;
using System.Threading;
using System.Security.AccessControl;
using System.Security.Principal;

public class Example
{
    public static void Main()
    {
        // Create a string representing the current user.
        string user = Environment.UserDomainName + "\\" + 
            Environment.UserName;

        // Create a security object that grants no access.
        MutexSecurity mSec = new MutexSecurity();

        // Add a rule that grants the current user the 
        // right to enter or release the mutex.
        MutexAccessRule rule = new MutexAccessRule(user, 
            MutexRights.Synchronize | MutexRights.Modify, 
            AccessControlType.Allow);
        mSec.AddAccessRule(rule);

        // Add a rule that denies the current user the 
        // right to change permissions on the mutex.
        rule = new MutexAccessRule(user, 
            MutexRights.ChangePermissions, 
            AccessControlType.Deny);
        mSec.AddAccessRule(rule);

        // Display the rules in the security object.
        ShowSecurity(mSec);

        // Add a rule that allows the current user the 
        // right to read permissions on the mutex. This rule
        // is merged with the existing Allow rule.
        rule = new MutexAccessRule(user, 
            MutexRights.ReadPermissions, 
            AccessControlType.Allow);
        mSec.AddAccessRule(rule);

        ShowSecurity(mSec);
    }

    private static void ShowSecurity(MutexSecurity security)
    {
        Console.WriteLine("\r\nCurrent access rules:\r\n");

        foreach(MutexAccessRule ar in 
            security.GetAccessRules(true, true, typeof(NTAccount)))
        {
            Console.WriteLine("        User: {0}", ar.IdentityReference);
            Console.WriteLine("        Type: {0}", ar.AccessControlType);
            Console.WriteLine("      Rights: {0}", ar.MutexRights);
            Console.WriteLine();
        }
    }
}

/*This code example produces output similar to following:

Current access rules:

        User: TestDomain\TestUser
        Type: Deny
      Rights: ChangePermissions

        User: TestDomain\TestUser
        Type: Allow
      Rights: Modify, Synchronize


Current access rules:

        User: TestDomain\TestUser
        Type: Deny
      Rights: ChangePermissions

        User: TestDomain\TestUser
        Type: Allow
      Rights: Modify, ReadPermissions, Synchronize
 */
Imports System.Threading
Imports System.Security.AccessControl
Imports System.Security.Principal

Public Class Example

    Public Shared Sub Main()

        ' Create a string representing the current user.
        Dim user As String = Environment.UserDomainName _ 
            & "\" & Environment.UserName

        ' Create a security object that grants no access.
        Dim mSec As New MutexSecurity()

        ' Add a rule that grants the current user the 
        ' right to enter or release the mutex.
        Dim rule As New MutexAccessRule(user, _
            MutexRights.Synchronize _
            Or MutexRights.Modify, _
            AccessControlType.Allow)
        mSec.AddAccessRule(rule)

        ' Add a rule that denies the current user the 
        ' right to change permissions on the mutex.
        rule = New MutexAccessRule(user, _
            MutexRights.ChangePermissions, _
            AccessControlType.Deny)
        mSec.AddAccessRule(rule)

        ' Display the rules in the security object.
        ShowSecurity(mSec)

        ' Add a rule that allows the current user the 
        ' right to read permissions on the mutex. This rule
        ' is merged with the existing Allow rule.
        rule = New MutexAccessRule(user, _
            MutexRights.ReadPermissions, _
            AccessControlType.Allow)
        mSec.AddAccessRule(rule)

        ShowSecurity(mSec)

    End Sub 

    Private Shared Sub ShowSecurity(ByVal security As MutexSecurity)
        Console.WriteLine(vbCrLf & "Current access rules:" & vbCrLf)

        For Each ar As MutexAccessRule In _
            security.GetAccessRules(True, True, GetType(NTAccount))

            Console.WriteLine("        User: {0}", ar.IdentityReference)
            Console.WriteLine("        Type: {0}", ar.AccessControlType)
            Console.WriteLine("      Rights: {0}", ar.MutexRights)
            Console.WriteLine()
        Next

    End Sub
End Class 

'This code example produces output similar to following:
'
'Current access rules:
'
'        User: TestDomain\TestUser
'        Type: Deny
'      Rights: ChangePermissions
'
'        User: TestDomain\TestUser
'        Type: Allow
'      Rights: Modify, Synchronize
'
'
'Current access rules:
'
'        User: TestDomain\TestUser
'        Type: Deny
'      Rights: ChangePermissions
'
'        User: TestDomain\TestUser
'        Type: Allow
'      Rights: Modify, ReadPermissions, Synchronize

설명

개체는 MutexSecurity 명명된 시스템 뮤텍스에 대한 액세스 권한을 지정하고 액세스 시도를 감사하는 방법도 지정합니다. 뮤텍스에 대한 액세스 권한은 각 액세스 규칙이 개체로 표현되는 규칙으로 표현됩니다 MutexAccessRule . 각 감사 규칙은 개체로 MutexAuditRule 표시됩니다.

이렇게 하면 각 보안 개체에 보안 개체에 대한 액세스를 제어하는 DACL(임의 액세스 제어 목록)이 하나 이상 있고 감사되는 액세스 시도를 지정하는 SACL(시스템 액세스 제어 목록)이 하나 이상 있는 기본 Windows 보안 시스템을 미러링합니다. DACL 및 SACL은 사용자 및 그룹에 대한 액세스 및 감사를 지정하는 ACE(액세스 제어 항목)의 순서가 지정된 목록입니다. 또는 MutexAuditRule 개체는 MutexAccessRule 둘 이상의 ACE를 나타낼 수 있습니다.

참고

개체는 Mutex 로컬 뮤텍스 또는 명명된 시스템 뮤텍스를 나타낼 수 있습니다. Windows 액세스 제어 보안은 명명된 시스템 뮤텍스에만 의미가 있습니다.

, MutexAccessRuleMutexAuditRule 클래스는 MutexSecurityACL 및 ACL의 구현 세부 정보를 숨깁니다. 17가지 ACE 유형과 액세스 권한의 상속 및 전파를 올바르게 유지하는 복잡성을 무시할 수 있습니다. 이러한 개체는 다음과 같은 일반적인 액세스 제어 오류를 방지하도록 설계되었습니다.

  • null DACL을 사용하여 보안 설명자 만들기 DACL에 대한 null 참조를 사용하면 모든 사용자가 개체에 액세스 규칙을 추가하여 서비스 거부 공격을 만들 수 있습니다. 새 MutexSecurity 개체는 항상 모든 사용자에 대한 모든 액세스를 거부하는 빈 DACL로 시작합니다.

  • ACE의 정식 순서를 위반하는 경우 DACL의 ACE 목록이 정식 순서로 유지되지 않으면 사용자에게 실수로 보안 개체에 대한 액세스 권한이 부여될 수 있습니다. 예를 들어 거부된 액세스 권한은 항상 허용된 액세스 권한 앞에 표시되어야 합니다. MutexSecurity 개체는 내부적으로 올바른 순서를 유지합니다.

  • 리소스 관리자만 제어해야 하는 보안 설명자 플래그 조작

  • ACE 플래그의 잘못된 조합을 만듭니다.

  • 상속된 ACE 조작. 상속 및 전파는 액세스 및 감사 규칙에 대한 변경 내용에 따라 리소스 관리자가 처리합니다.

  • ACL에 의미 없는 ACL 삽입.

.NET 보안 개체에 의해 지원 되지 않습니다만 기능 대부분의 같은 애플리케이션 개발자는 피해 야 하는 위험한 작업 같습니다.

  • 일반적으로 리소스 관리자가 수행하는 하위 수준 작업입니다.

  • 정식 순서를 유지하지 않는 방식으로 액세스 제어 항목을 추가하거나 제거합니다.

명명된 뮤텍스에 대한 Windows 액세스 제어 보안을 수정하려면 메서드를 Mutex.GetAccessControl 사용하여 개체를 MutexSecurity 가져옵니다. 규칙을 추가 및 제거하여 보안 개체를 수정한 다음 메서드를 Mutex.SetAccessControl 사용하여 다시 연결합니다.

중요

변경된 보안 개체를 MutexSecurity 명명된 뮤텍스에 할당하기 위해 메서드를 호출 Mutex.SetAccessControl 할 때까지 개체를 변경해도 명명된 뮤텍스의 액세스 수준에 영향을 미치지 않습니다.

한 뮤텍스에서 다른 뮤텍스로 액세스 제어 보안을 복사하려면 메서드를 MutexSecurity 사용하여 Mutex.GetAccessControl 첫 번째 뮤텍스에 대한 액세스 및 감사 규칙을 나타내는 개체를 가져와서 메서드 또는 개체를 허용하는 MutexSecurity 생성자를 사용하여 Mutex.SetAccessControl 두 번째 뮤텍스에 해당 규칙을 할당합니다.

SDDL(보안 설명자 정의 언어)에 투자한 사용자는 메서드를 사용하여 명명된 뮤텍스에 대한 액세스 규칙을 설정하고 메서드 GetSecurityDescriptorSddlForm 를 사용하여 SetSecurityDescriptorSddlForm SDDL 형식의 액세스 규칙을 나타내는 문자열을 가져올 수 있습니다. 새 개발에는 권장되지 않습니다.

생성자

MutexSecurity()

기본값을 사용하여 MutexSecurity 클래스의 새 인스턴스를 초기화합니다.

MutexSecurity(String, AccessControlSections)

지정한 이름의 시스템 뮤텍스에서 지정한 액세스 제어 보안 규칙 섹션으로 MutexSecurity 클래스의 새 인스턴스를 초기화합니다.

속성

AccessRightType

MutexSecurity 클래스가 액세스 권한을 나타내는 데 사용하는 열거형을 가져옵니다.

AccessRulesModified

ObjectSecurity 개체와 관련된 액세스 규칙이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
AccessRuleType

MutexSecurity 클래스가 액세스 규칙을 나타내는 데 사용하는 형식을 가져옵니다.

AreAccessRulesCanonical

ObjectSecurity 개체와 관련된 액세스 규칙이 정식 순서대로 되어 있는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAccessRulesProtected

ObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)이 보호되는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAuditRulesCanonical

ObjectSecurity 개체와 관련된 감사 규칙이 정식 순서대로 되어 있는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAuditRulesProtected

ObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)이 보호되는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AuditRulesModified

ObjectSecurity 개체와 관련된 감사 규칙이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
AuditRuleType

MutexSecurity 클래스에서 감사 규칙을 나타내는 데 사용하는 형식을 가져옵니다.

GroupModified

보안 가능한 개체와 관련된 그룹이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
IsContainer

ObjectSecurity 개체가 컨테이너 개체인지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
IsDS

ObjectSecurity 개체가 디렉터리 개체인지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
OwnerModified

보안 가능한 개체의 소유자가 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SecurityDescriptor

이 인스턴스의 보안 설명자를 가져옵니다.

(다음에서 상속됨 ObjectSecurity)

메서드

AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

지정된 액세스 권한, 액세스 제어 및 플래그로 지정한 사용자의 새 액세스 제어 규칙을 만듭니다.

AddAccessRule(AccessRule)

지정한 액세스 규칙을 이 CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
AddAccessRule(MutexAccessRule)

새 규칙을 병합할 수 있는 일치하는 액세스 제어 규칙을 검색합니다. 아무 것도 발견되지 않으면 새 규칙을 추가합니다.

AddAuditRule(AuditRule)

지정한 감사 규칙을 이 CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
AddAuditRule(MutexAuditRule)

새 규칙을 병합할 수 있는 감사 규칙을 검색합니다. 아무 것도 발견되지 않으면 새 규칙을 추가합니다.

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

새 감사 규칙을 만들어 규칙을 적용할 사용자, 감사할 액세스 권한 및 감사 규칙을 트리거할 결과를 지정합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetAccessRules(Boolean, Boolean, Type)

지정된 보안 식별자와 관련된 액세스 규칙 컬렉션을 가져옵니다.

(다음에서 상속됨 CommonObjectSecurity)
GetAuditRules(Boolean, Boolean, Type)

지정된 보안 식별자와 관련된 감사 규칙 컬렉션을 가져옵니다.

(다음에서 상속됨 CommonObjectSecurity)
GetGroup(Type)

지정된 소유자와 관련된 주 그룹을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetOwner(Type)

지정된 주 그룹과 관련된 소유자를 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
GetSecurityDescriptorBinaryForm()

ObjectSecurity 개체의 보안 설명자 정보를 나타내는 바이트 값 배열을 반환합니다.

(다음에서 상속됨 ObjectSecurity)
GetSecurityDescriptorSddlForm(AccessControlSections)

ObjectSecurity 개체와 관련된 지정된 보안 설명자 섹션의 SDDL(Security Descriptor Definition Language) 표현을 반환합니다.

(다음에서 상속됨 ObjectSecurity)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ModifyAccess(AccessControlModification, AccessRule, Boolean)

지정된 수정 사항을 이 CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 CommonObjectSecurity)
ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

지정된 수정 사항을 이 ObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 ObjectSecurity)
ModifyAudit(AccessControlModification, AuditRule, Boolean)

지정된 수정 사항을 이 CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 CommonObjectSecurity)
ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

지정된 수정 사항을 이 ObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 ObjectSecurity)
Persist(Boolean, String, AccessControlSections)

ObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 ObjectSecurity)
Persist(SafeHandle, AccessControlSections)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(SafeHandle, AccessControlSections, Object)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(String, AccessControlSections)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(String, AccessControlSections, Object)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
PurgeAccessRules(IdentityReference)

지정된 IdentityReference와 관련된 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 ObjectSecurity)
PurgeAuditRules(IdentityReference)

지정된 IdentityReference와 관련된 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 ObjectSecurity)
ReadLock()

ObjectSecurity 개체에 대한 읽기 액세스를 잠급니다.

(다음에서 상속됨 ObjectSecurity)
ReadUnlock()

ObjectSecurity 개체에 대한 읽기 액세스의 잠금을 해제합니다.

(다음에서 상속됨 ObjectSecurity)
RemoveAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자 및 액세스 마스크가 들어 있는 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRule(MutexAccessRule)

지정한 규칙과 사용자 및 AccessControlType(허용 또는 거부)이 같고 상속 및 전파 플래그가 호환되는 액세스 제어 규칙을 검색합니다. 그러한 규칙이 있으면 지정한 액세스 규칙에 포함된 권한이 규칙에서 제거됩니다.

RemoveAccessRuleAll(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자가 있는 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRuleAll(MutexAccessRule)

지정한 규칙과 사용자 및 AccessControlType(허용 또는 거부)이 같은 모든 액세스 제어 규칙을 검색하여 제거합니다.

RemoveAccessRuleSpecific(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 정확히 일치하는 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRuleSpecific(MutexAccessRule)

지정한 규칙과 정확히 일치하는 액세스 제어 규칙을 검색하여 제거합니다.

RemoveAuditRule(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자 및 액세스 마스크가 들어 있는 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRule(MutexAuditRule)

지정한 규칙과 사용자가 같고 상속 및 전파 플래그가 호환되는 감사 제어 규칙을 검색합니다. 호환되는 규칙이 있으면 지정한 규칙에 포함된 권한이 규칙에서 제거됩니다.

RemoveAuditRuleAll(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자가 들어 있는 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRuleAll(MutexAuditRule)

지정한 규칙과 같은 사용자를 가진 모든 감사 규칙을 검색하고 해당 규칙이 있을 경우 제거합니다.

RemoveAuditRuleSpecific(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 정확히 일치하는 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRuleSpecific(MutexAuditRule)

지정한 규칙과 정확히 일치하는 감사 규칙을 검색하여 제거합니다.

ResetAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)의 모든 액세스 규칙을 제거한 다음 지정한 액세스 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
ResetAccessRule(MutexAccessRule)

AccessControlType과 상관없이 지정한 규칙과 사용자가 같은 모든 액세스 제어 규칙을 제거한 다음 지정한 규칙을 추가합니다.

SetAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자 및 한정자가 들어 있는 모든 액세스 규칙을 제거한 다음 지정한 액세스 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
SetAccessRule(MutexAccessRule)

지정된 규칙과 사용자 및 AccessControlType(허용 또는 거부)이 같은 모든 액세스 제어 규칙을 제거한 다음 지정한 규칙을 추가합니다.

SetAccessRuleProtection(Boolean, Boolean)

ObjectSecurity 개체와 관련된 액세스 규칙의 보호를 설정하거나 제거합니다. 보호된 액세스 규칙은 부모 개체에서 상속을 통해 수정할 수 없습니다.

(다음에서 상속됨 ObjectSecurity)
SetAuditRule(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자 및 한정자가 들어 있는 모든 감사 규칙을 제거한 다음 지정한 감사 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
SetAuditRule(MutexAuditRule)

AuditFlags 과 상관없이 지정한 규칙과 사용자가 같은 모든 감사 규칙을 제거한 다음 지정한 규칙을 추가합니다.

SetAuditRuleProtection(Boolean, Boolean)

ObjectSecurity 개체와 관련된 감사 규칙의 보호를 설정하거나 제거합니다. 보호된 감사 규칙은 부모 개체에서 상속을 통해 수정할 수 없습니다.

(다음에서 상속됨 ObjectSecurity)
SetGroup(IdentityReference)

ObjectSecurity 개체와 관련된 보안 설명자의 주 그룹을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetOwner(IdentityReference)

ObjectSecurity 개체와 관련된 보안 설명자의 소유자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[])

지정한 바이트 값 배열에서 이 ObjectSecurity 개체의 보안 설명자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

지정한 바이트 값 배열에서 이 ObjectSecurity 개체에 대해 지정한 보안 설명자 섹션을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorSddlForm(String)

지정한 SDDL(Security Descriptor Definition Language) 문자열에서 이 ObjectSecurity 개체의 보안 설명자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorSddlForm(String, AccessControlSections)

지정한 SDDL(Security Descriptor Definition Language) 문자열에서 이 ObjectSecurity 개체에 대해 지정한 보안 설명자 섹션을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WriteLock()

ObjectSecurity 개체에 대한 쓰기 액세스를 잠급니다.

(다음에서 상속됨 ObjectSecurity)
WriteUnlock()

ObjectSecurity 개체에 대한 쓰기 액세스의 잠금을 해제합니다.

(다음에서 상속됨 ObjectSecurity)

적용 대상

추가 정보