Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1640023 > unrolled thread
| Started by | Pavel Machek <pavel@ucw.cz> |
|---|---|
| First post | 2017-05-11 23:10 +0200 |
| Last post | 2017-05-17 13:10 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: setting brightness as privileged operation? Pavel Machek <pavel@ucw.cz> - 2017-05-11 23:10 +0200
Re: setting brightness as privileged operation? Michal Hocko <mhocko@kernel.org> - 2017-05-12 08:30 +0200
Re: setting brightness as privileged operation? Pavel Machek <pavel@ucw.cz> - 2017-05-12 11:50 +0200
Re: setting brightness as privileged operation? Michal Hocko <mhocko@kernel.org> - 2017-05-17 13:10 +0200
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-05-11 23:10 +0200 |
| Subject | Re: setting brightness as privileged operation? |
| Message-ID | <tG3vs-37w-13@gated-at.bofh.it> |
On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > Hi, > I have just learned that my Xfce Power Manager cannot manipulate > brightness because I do not have policykit installed on my computer. > There is a reason for that (yeah it depends on systemd which I prefer > not have). > > While this is clearly a problem of the Xfce applet I am wondering why > setting the brightness has to be a privileged operation at all. Is there > any strong reason for it or just a general policy that we do not give > world writable files into sysfs? Well, if you have another user logged in using ssh, and changing _your_ brightness, that will be somehow annoying, right? That's the reason why global settings should be root-only... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2017-05-12 08:30 +0200 |
| Message-ID | <tGcfo-nE-7@gated-at.bofh.it> |
| In reply to | #1640023 |
On Thu 11-05-17 23:07:55, Pavel Machek wrote: > On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > > Hi, > > I have just learned that my Xfce Power Manager cannot manipulate > > brightness because I do not have policykit installed on my computer. > > There is a reason for that (yeah it depends on systemd which I prefer > > not have). > > > > While this is clearly a problem of the Xfce applet I am wondering why > > setting the brightness has to be a privileged operation at all. Is there > > any strong reason for it or just a general policy that we do not give > > world writable files into sysfs? > > Well, if you have another user logged in using ssh, and changing _your_ > brightness, that will be somehow annoying, right? I am pretty sure that such a user can do much larger harm than playing with brigtness of my LCD. Anyway I went with my own rc.local hack. -- Michal Hocko SUSE Labs
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-05-12 11:50 +0200 |
| Message-ID | <tGfmV-2vB-11@gated-at.bofh.it> |
| In reply to | #1640223 |
[Multipart message — attachments visible in raw view] — view raw
On Fri 2017-05-12 08:20:04, Michal Hocko wrote: > On Thu 11-05-17 23:07:55, Pavel Machek wrote: > > On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > > > Hi, > > > I have just learned that my Xfce Power Manager cannot manipulate > > > brightness because I do not have policykit installed on my computer. > > > There is a reason for that (yeah it depends on systemd which I prefer > > > not have). > > > > > > While this is clearly a problem of the Xfce applet I am wondering why > > > setting the brightness has to be a privileged operation at all. Is there > > > any strong reason for it or just a general policy that we do not give > > > world writable files into sysfs? > > > > Well, if you have another user logged in using ssh, and changing _your_ > > brightness, that will be somehow annoying, right? > > I am pretty sure that such a user can do much larger harm than playing > with brigtness of my LCD. Anyway I went with my own rc.local hack. Can he? Those are bugs to be fixed. We don't want them in kernel... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2017-05-17 13:10 +0200 |
| Message-ID | <tI505-2ji-1@gated-at.bofh.it> |
| In reply to | #1640367 |
On Fri 12-05-17 11:47:12, Pavel Machek wrote: > On Fri 2017-05-12 08:20:04, Michal Hocko wrote: > > On Thu 11-05-17 23:07:55, Pavel Machek wrote: > > > On Thu 2017-01-05 10:23:07, Michal Hocko wrote: > > > > Hi, > > > > I have just learned that my Xfce Power Manager cannot manipulate > > > > brightness because I do not have policykit installed on my computer. > > > > There is a reason for that (yeah it depends on systemd which I prefer > > > > not have). > > > > > > > > While this is clearly a problem of the Xfce applet I am wondering why > > > > setting the brightness has to be a privileged operation at all. Is there > > > > any strong reason for it or just a general policy that we do not give > > > > world writable files into sysfs? > > > > > > Well, if you have another user logged in using ssh, and changing _your_ > > > brightness, that will be somehow annoying, right? > > > > I am pretty sure that such a user can do much larger harm than playing > > with brigtness of my LCD. Anyway I went with my own rc.local hack. > > Can he? Those are bugs to be fixed. We don't want them in kernel... Good luck with that whack a mole. But more seriously. Having an untrusted user on a system requires many measures including a very restricted access to mounted filesystems to contain such a user. Something tells me that /sys is one of the first candidate to deny access to. Instead it seems that we enforce people to use policy kit and other crap to allow to use my HW as I want. I will not argue more here, I have a workaround for me but this is just weird... -- Michal Hocko SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web