示例#1
0
    static int GetAccessControl(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                string arg0 = ToLua.CheckString(L, 1);
                System.Security.AccessControl.DirectorySecurity o = System.IO.Directory.GetAccessControl(arg0);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                System.Security.AccessControl.AccessControlSections arg1 = (System.Security.AccessControl.AccessControlSections)ToLua.CheckObject(L, 2, typeof(System.Security.AccessControl.AccessControlSections));
                System.Security.AccessControl.DirectorySecurity     o    = System.IO.Directory.GetAccessControl(arg0, arg1);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: System.IO.Directory.GetAccessControl"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 /// <summary>
 /// Gets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="includeSections">Section(s) of the security descriptor to return.</param>
 /// <returns>The security descriptor for the folder.</returns>
 public string GetSecurityDescriptorSddlForm(System.Security.AccessControl.AccessControlSections includeSections)
 {
     if (v2Folder != null)
     {
         return(v2Folder.GetSecurityDescriptor((int)includeSections));
     }
     throw new NotV1SupportedException();
 }
 public int SetSecurity(object FileNode, object FileDesc0, System.Security.AccessControl.AccessControlSections Sections, byte[] SecurityDescriptor)
 {
     try {
         return(HandleResult(Storage.SetSecurity((IFSEntryPointer)FileDesc0, Sections, SecurityDescriptor)).GetNtStatus());
     } catch (Win32Exception ex) {
         throw WindowsExceptionGenerator.GetIOException(ex);
     } catch (NTException ex) {
         throw WindowsExceptionGenerator.GetIOException(ex);
     }
 }
 /// <summary>
 /// Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="sddlForm">The security descriptor for the folder.</param>
 /// <param name="includeSections">Section(s) of the security descriptor to set.</param>
 public void SetSecurityDescriptorSddlForm(string sddlForm, System.Security.AccessControl.AccessControlSections includeSections)
 {
     if (v2Folder != null)
     {
         v2Folder.SetSecurityDescriptor(sddlForm, (int)includeSections);
     }
     else
     {
         throw new NotV1SupportedException();
     }
 }
示例#5
0
        static StackObject *GetAccessControl_22(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Security.AccessControl.AccessControlSections @includeSections = (System.Security.AccessControl.AccessControlSections) typeof(System.Security.AccessControl.AccessControlSections).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.IO.DirectoryInfo instance_of_this_method = (System.IO.DirectoryInfo) typeof(System.IO.DirectoryInfo).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetAccessControl(@includeSections);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#6
0
 public static System.Security.AccessControl.DirectorySecurity GetAccessControl(string path,
                                                                                System.Security.AccessControl.AccessControlSections includeSections) =>
 Pri.LongPath.Directory.GetAccessControl(path, includeSections);
 /// <summary>
 /// Gets a <see cref="TaskSecurity"/> object that encapsulates the specified type of access control list (ACL) entries for the task folder described by the current <see cref="TaskFolder"/> object.
 /// </summary>
 /// <param name="includeSections">One of the <see cref="System.Security.AccessControl.AccessControlSections"/> values that specifies which group of access control entries to retrieve.</param>
 /// <returns>A <see cref="TaskSecurity"/> object that encapsulates the access control rules for the current folder.</returns>
 public TaskSecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(new TaskSecurity(this, includeSections));
 }
 public SemaphoreSecurity(string name, System.Security.AccessControl.AccessControlSections includeSections) : base(default(bool), default(System.Security.AccessControl.ResourceType))
 {
 }
示例#9
0
 /// <summary>
 /// Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current DirectoryInfo object.
 /// </summary>
 /// <param name="includeSections">One of the AccessControlSections values that specifies the type of access control list (ACL) information to receive.</param>
 /// <returns>A DirectorySecurity object that encapsulates the access control rules for the file described by the path parameter.</returns>
 public System.Security.AccessControl.DirectorySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(Directory.GetAccessControl(FullPath, includeSections));
 }
示例#10
0
 public static System.Security.AccessControl.DirectorySecurity GetAccessControl(this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.AccessControlSections includeSections)
 {
     throw null;
 }
示例#11
0
 public DirectorySecurity(string name, System.Security.AccessControl.AccessControlSections includeSections)
 {
 }
示例#12
0
 public System.Security.AccessControl.RegistrySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(_regKey.GetAccessControl(includeSections));
 }
        public System.Security.AccessControl.RegistrySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
        {
            Contract.Ensures(Contract.Result <System.Security.AccessControl.RegistrySecurity>() != null);

            return(default(System.Security.AccessControl.RegistrySecurity));
        }
示例#14
0
 public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileInfo fileInfo, System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(default(System.Security.AccessControl.FileSecurity));
 }
示例#15
0
 public static System.Security.AccessControl.DirectorySecurity GetAccessControl(this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(default(System.Security.AccessControl.DirectorySecurity));
 }
示例#16
0
 public System.Security.AccessControl.DirectorySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(default(System.Security.AccessControl.DirectorySecurity));
 }
示例#17
0
 public static System.Security.AccessControl.DirectorySecurity GetAccessControl(string path, System.Security.AccessControl.AccessControlSections includeSections)
 {
 }
示例#18
0
 public static System.Security.AccessControl.FileSecurity GetAccessControl(Hierarchy hierarchy, string path, System.Security.AccessControl.AccessControlSections includeSections)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.GetAccessControl(path, includeSections));
 }
示例#19
0
 public static System.Security.AccessControl.RegistrySecurity GetAccessControl(this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(default(System.Security.AccessControl.RegistrySecurity));
 }
示例#20
0
        public static System.Security.AccessControl.FileSecurity GetAccessControl(string path, System.Security.AccessControl.AccessControlSections includeSections)
        {
            Contract.Ensures(Contract.Result <System.Security.AccessControl.FileSecurity>() != null);

            return(default(System.Security.AccessControl.FileSecurity));
        }
示例#21
0
 public FileSecurity(string fileName, System.Security.AccessControl.AccessControlSections includeSections)
 {
 }
 /// <summary>
 /// Gets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="includeSections">Section(s) of the security descriptor to return.</param>
 /// <returns>The security descriptor for the folder.</returns>
 public System.Security.AccessControl.GenericSecurityDescriptor GetSecurityDescriptor(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(new System.Security.AccessControl.RawSecurityDescriptor(GetSecurityDescriptorSddlForm(includeSections)));
 }
示例#23
0
 public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileInfo fileInfo, System.Security.AccessControl.AccessControlSections includeSections)
 {
     throw null;
 }
示例#24
0
 public System.Security.AccessControl.DirectorySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(inner.GetAccessControl(includeSections));
 }
示例#25
0
 public System.Security.AccessControl.RegistrySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     throw null;
 }
示例#26
0
 public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileInfo fileInfo, System.Security.AccessControl.AccessControlSections includeSections)
 {
     throw new NotImplementedException();
 }
示例#27
0
文件: FileInfo.cs 项目: Falven/TZDB
 /// <summary>
 /// Gets a FileSecurity object that encapsulates the specified type of access control list (ACL) entries for the file described by the current FileInfo object.
 /// </summary>
 /// <param name="includeSections"></param>
 /// <returns></returns>
 /// <exception cref="System.IO.IOException">An I/O error occurred while opening the file.</exception>
 /// <exception cref="System.PlatformNotSupportedException">The current operating system is not Microsoft Windows 2000 or later.</exception>
 /// <exception cref="System.Security.AccessControl.PrivilegeNotHeldException">The current system account does not have administrative privileges.</exception>
 /// <exception cref="System.SystemException">The file could not be found.</exception>
 /// <exception cref="System.UnauthorizedAccessException">
 /// This operation is not supported on the current platform.
 /// -or-
 /// The caller does not have the required permission.</exception>
 public System.Security.AccessControl.FileSecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections)
 {
     return(_fileInfo.GetAccessControl(includeSections));
 }
示例#28
0
 public NtStatus SetFileSecurity(string fileName, System.Security.AccessControl.FileSystemSecurity security, System.Security.AccessControl.AccessControlSections sections, DokanFileInfo info)
 {
     return(DokanResult.Error);
 }
 public static System.Security.AccessControl.RegistrySecurity GetAccessControl(this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.AccessControlSections includeSections)
 {
     throw null;
 }
 /// <summary>
 /// Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="sd">The security descriptor for the folder.</param>
 /// <param name="includeSections">Section(s) of the security descriptor to set.</param>
 public void SetSecurityDescriptor(System.Security.AccessControl.GenericSecurityDescriptor sd, System.Security.AccessControl.AccessControlSections includeSections)
 {
     this.SetSecurityDescriptorSddlForm(sd.GetSddlForm(includeSections), includeSections);
 }