View previous topic :: View next topic |
Author |
Message |
tazinblack Veteran
Joined: 23 Jan 2005 Posts: 1146 Location: Baden / Germany
|
Posted: Thu May 05, 2016 12:33 pm Post subject: etc-update: zusätzliche Verzeichnisse |
|
|
Hallo zusammen,
da ich KDE von Hand starte verwende ich eine angepasste polkit Konfiguration.
Leider zerlegt mir jedes Update meine Einstellungen und stellt alles auf den Standard zurück.
Gibt es eine Möglichkeit, dass ich die Konfig unter /usr/share/polkit-1/actions als Konfirurationsordner hinzufüge und damit Änderungen mit etc-update mergen kann?
Mir geht das langsam echt auf den Keks. _________________ Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Thu May 05, 2016 2:01 pm Post subject: |
|
|
man make.conf wrote: | CONFIG_PROTECT = [space delimited list of files and/or directories]
All files and/or directories that are defined here will have "config file protection" enabled for
them. See the CONFIGURATION FILES section of emerge(1) for more information. |
Das dürfte das sein, was du suchst, also in deinem Fall:
/etc/portage/make.conf: |
#...
CONFIG_PROTECT="${CONFIG_PROTECT} /usr/share/polkit-1/actions"
|
_________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Thu May 05, 2016 4:08 pm Post subject: |
|
|
Ganz richtig wäre die eigenen Änderungen dahin zu packen wo Sie hingehören:
Code: | /etc/polkit-1/rules.d |
Bye
Py |
|
Back to top |
|
|
tazinblack Veteran
Joined: 23 Jan 2005 Posts: 1146 Location: Baden / Germany
|
Posted: Thu May 05, 2016 5:37 pm Post subject: |
|
|
Danke für die schnellen Antworten!
py-ro wrote: | Ganz richtig wäre die eigenen Änderungen dahin zu packen wo Sie hingehören:
Code: | /etc/polkit-1/rules.d |
Bye
Py |
Wie würde das dann aussehen?
Ich habe z.B. bei den actions sowas:
Code: | <action id="org.freedesktop.udisks2.filesystem-mount">
<description>Mount a filesystem</description>
<description xml:lang="de">Ein Dateisystem einhängen</description>
<message>Authentication is required to mount the filesystem</message>
<message xml:lang="de">Legitimation ist zum Einhängen eines Dateisystems erforderlich</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action> |
Damit ich z.B. was mounten kann, habe ich <allow_inactive></allow_inactive> gleich wie <allow_active></allow_active> gesetzt.
Wie würde das als Regel aussehen?
Etwa so:
Code: | polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
subject.user == "meinUser") {
return "yes";
}
});
|
Und wieso wird meine KDE Session als "inactive" erkannt. Hat das damit zu tun, dass ich keinen Loginmanager verwende?
Sind die rules dann auch automatisch config protected? _________________ Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4542 Location: Germany
|
Posted: Thu May 05, 2016 9:18 pm Post subject: |
|
|
tazinblack wrote: | Sind die rules dann auch automatisch config protected? |
Ja, per default ist /etc komplett geschützt (mit wenigen Ausnahmen).
Schau dazu zb via Code: | portageq envvar CONFIG_PROTECT CONFIG_PROTECT_MASK | (oder in der emerge --info) |
|
Back to top |
|
|
|