selectively disabling ACLs

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

 



In the old HAL days, it was reasonable to configure which devices
would and would not get ownership/ACLs applied at the system level,
as HAL contained system level customization (via FDIs) to set this.

As I look at the current code in udev, I don't see a good way to
override this. The only infrastructure is a 70-acl.rules file
that has:

...
# optical drives
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", ENV{ACL_MANAGE}="1"

# sound devices
SUBSYSTEM=="sound", ENV{ACL_MANAGE}="1"
...
# apply ACL for all locally logged in users
LABEL="acl_apply", ENV{ACL_MANAGE}=="?*",
# TEST=="/var/run/ConsoleKit/database", \
  RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"

...

The only way I can see to disable ACLs, for, say, a webcam, would
be to write a rule that runs *before* this rules file, that sets
last_rule. That's quite a hack.

Is there a better way to set this that I don't see?

Bill
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux