Esempio n. 1
0
        static PermissionPolicy()
        {
            Connect = new PermissionPolicy("Connect", "Allows access to communicate with the CoApp Service", new[] { WellKnownSidType.WorldSid });
            EnumeratePackages = new PermissionPolicy("EnumeratePackages", "Allows access to query the system for installed packages", new[] { WellKnownSidType.WorldSid });
            UpdatePackage = new PermissionPolicy("UpdatePackage", "Allows a newer version of an package that is currently installed to be installed", new[] { WellKnownSidType.WorldSid });

            InstallPackage = new PermissionPolicy("InstallPackage", "Allows a new package to be installed", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            RemovePackage = new PermissionPolicy("RemovePackage", "Allows a package to be removed", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            ChangeRequiredState = new PermissionPolicy("ChangeRequiredState", "Allows a user to change whether a given package is required (user requested)", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            ChangeState = new PermissionPolicy("ChangeState", "Allows a user to change whether any state on a given package", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            EditSystemFeeds = new PermissionPolicy("EditSystemFeeds", "Allows users to edit remembered feeds for the system", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            EditSessionFeeds = new PermissionPolicy("EditSessionFeeds", "Allows users to edit remembered feeds for the session", new[] { WellKnownSidType.WorldSid });

            PauseService = new PermissionPolicy("PauseService", "Allows users to place the CoApp Service into a suspended (paused) state", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            StopService = new PermissionPolicy("StopService", "Allows users to stop the CoApp Service", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            ModifyPolicy = new PermissionPolicy("ModifyPolicy", "Allows users to change policy values for CoApp", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            EditSchedule = new PermissionPolicy("EditSchedule", "Allows users to edit any CoApp scheduled tasks", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            Symlink = new PermissionPolicy("Symlink", "Allows users to create and edit symlinks", new[] { WellKnownSidType.BuiltinAdministratorsSid });
        }
Esempio n. 2
0
        static PermissionPolicy()
        {
            Connect           = new PermissionPolicy("Connect", "Allows access to communicate with the CoApp Service", new[] { WellKnownSidType.WorldSid });
            EnumeratePackages = new PermissionPolicy("EnumeratePackages", "Allows access to query the system for installed packages", new[] { WellKnownSidType.WorldSid });
            UpdatePackage     = new PermissionPolicy("UpdatePackage", "Allows a newer version of an package that is currently installed to be installed", new[] { WellKnownSidType.WorldSid });

            InstallPackage = new PermissionPolicy("InstallPackage", "Allows a new package to be installed", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            RemovePackage  = new PermissionPolicy("RemovePackage", "Allows a package to be removed", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            ChangeRequiredState = new PermissionPolicy("ChangeRequiredState", "Allows a user to change whether a given package is required (user requested)", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            ChangeState         = new PermissionPolicy("ChangeState", "Allows a user to change whether any state on a given package", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            EditSystemFeeds  = new PermissionPolicy("EditSystemFeeds", "Allows users to edit remembered feeds for the system", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            EditSessionFeeds = new PermissionPolicy("EditSessionFeeds", "Allows users to edit remembered feeds for the session", new[] { WellKnownSidType.WorldSid });

            PauseService = new PermissionPolicy("PauseService", "Allows users to place the CoApp Service into a suspended (paused) state", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            StopService  = new PermissionPolicy("StopService", "Allows users to stop the CoApp Service", new[] { WellKnownSidType.BuiltinAdministratorsSid });
            ModifyPolicy = new PermissionPolicy("ModifyPolicy", "Allows users to change policy values for CoApp", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            EditSchedule = new PermissionPolicy("EditSchedule", "Allows users to edit any CoApp scheduled tasks", new[] { WellKnownSidType.BuiltinAdministratorsSid });

            Symlink = new PermissionPolicy("Symlink", "Allows users to create and edit symlinks", new[] { WellKnownSidType.BuiltinAdministratorsSid });
        }