Magic paths for service registration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm investigating things beyond SUID/SGID which are related to trust transitions and visible in the file system, mainly due to the use of magic paths. I'm aiming for a fairly general concept of "trust transition", and I include altering browser actions when clicking on a hyperlink as far as they are influenced by file type registrations.

Here's what I came up with so far. I only include things that can somehow be hooked by packages, which rules out files such as /etc/inittdb and user crontabs.

usermode:

/etc/security/console.apps

D-Bus and polkit:

/etc/dbus-1/system.d
/etc/dbus-1/session.d
/usr/share/dbus-1/system-services
/usr/share/dbus-1/services
/usr/share/polkit-1/actions

Launching daemons or other background processes:

/etc/init.d

/etc/cron.d
/etc/cron.daily
/etc/cron.monthly
/etc/cron.weekly

/usr/lib/systemd/system plus other paths listed in systemd.unit(5).

*.desktop and *.protocol file registries:

/usr/lib*/libreoffice/share/xdg
/usr/share/applications
/usr/share/applications/kde4
/usr/share/gdm/autostart/LoginWindow
/usr/share/gdm/greeter/applications
/usr/share/gdm/greeter/autostart
/usr/share/gnome/autostart
/usr/share/gnome/wm-properties
/usr/share/kde4/services
/usr/share/kde4/services/ServiceMenus
/usr/share/xsessions

(Or in general, *.desktop files with with an Exec= line.)

Networking services:

/etc/xinet.d

Browser plugins:

/usr/share/mozilla/extensions
/usr/lib*/mozilla/extensions
/usr/lib*/mozilla/plugins

I'm not sure if anything related to shared-mime-info should appear in this list. As far as I can tell, the MIME types by themselves are harmless.

On top of that, there are other things code can do to expose itself across trust boundaries (networking, creation of temporary files, etc.), but detecting that requires different approaches.

The overall idea here is to identify parts of Fedora which would benefit most from a closer look, without actually looking at all Fedora packages individually.

--
Florian Weimer / Red Hat Product Security Team
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux