Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

etc-update: zusätzliche Verzeichnisse

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Author
Message
tazinblack
Veteran
Veteran
User avatar
Posts: 1146
Joined: Sun Jan 23, 2005 12:20 pm
Location: Baden / Germany

etc-update: zusätzliche Verzeichnisse

  • Quote

Post by tazinblack » Thu May 05, 2016 12:33 pm

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
Top
mrsteven
Veteran
Veteran
User avatar
Posts: 1939
Joined: Fri Jul 04, 2003 3:22 pm

  • Quote

Post by mrsteven » Thu May 05, 2016 2:01 pm

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:

Code: Select all

#...
CONFIG_PROTECT="${CONFIG_PROTECT} /usr/share/polkit-1/actions"
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Thu May 05, 2016 4:08 pm

Ganz richtig wäre die eigenen Änderungen dahin zu packen wo Sie hingehören:

Code: Select all

/etc/polkit-1/rules.d
Bye
Py
Top
tazinblack
Veteran
Veteran
User avatar
Posts: 1146
Joined: Sun Jan 23, 2005 12:20 pm
Location: Baden / Germany

  • Quote

Post by tazinblack » Thu May 05, 2016 5:37 pm

Danke für die schnellen Antworten!
py-ro wrote:Ganz richtig wäre die eigenen Änderungen dahin zu packen wo Sie hingehören:

Code: Select all

/etc/polkit-1/rules.d
Bye
Py
Wie würde das dann aussehen?
Ich habe z.B. bei den actions sowas:

Code: Select all

<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: Select all

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
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Thu May 05, 2016 9:18 pm

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: Select all

portageq envvar CONFIG_PROTECT CONFIG_PROTECT_MASK
(oder in der emerge --info)
Top
Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic