Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
etc-update: zusätzliche Verzeichnisse
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu May 05, 2016 12:33 pm    Post subject: etc-update: zusätzliche Verzeichnisse Reply with quote

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
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1938

PostPosted: Thu May 05, 2016 2:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Thu May 05, 2016 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Thu May 05, 2016 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4542
Location: Germany

PostPosted: Thu May 05, 2016 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum