mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 00:20:23 -07:00
permissions: disable automatic reloading of permissions from cfg
security reasons, avoid reading them live. Ideally we'd lock them behind sudo, but we can't do that.
This commit is contained in:
parent
9868b18378
commit
72cb5d24b6
@ -57,6 +57,8 @@ env = HYPRCURSOR_SIZE,24
|
||||
###################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Permissions/
|
||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
# for security reasons
|
||||
|
||||
# ecosystem {
|
||||
# enforce_permissions = 1
|
||||
|
@ -989,8 +989,6 @@ std::optional<std::string> CConfigManager::resetHLConfig() {
|
||||
m_failedPluginConfigValues.clear();
|
||||
m_finalExecRequests.clear();
|
||||
|
||||
g_pDynamicPermissionManager->clearConfigPermissions();
|
||||
|
||||
// paths
|
||||
m_configPaths.clear();
|
||||
std::string mainConfigPath = getMainConfigPath();
|
||||
@ -2911,6 +2909,7 @@ std::optional<std::string> CConfigManager::handlePermission(const std::string& c
|
||||
if (mode == PERMISSION_RULE_ALLOW_MODE_UNKNOWN)
|
||||
return "unknown permission allow mode";
|
||||
|
||||
if (m_isFirstLaunch)
|
||||
g_pDynamicPermissionManager->addConfigPermissionRule(data[0], type, mode);
|
||||
|
||||
return {};
|
||||
|
@ -70,6 +70,8 @@ env = HYPRCURSOR_SIZE,24
|
||||
###################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Permissions/
|
||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
# for security reasons
|
||||
|
||||
# ecosystem {
|
||||
# enforce_permissions = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user