[PATCH] reuse code in addons to check privileges
Danny Kukawka
danny.kukawka at web.de
Wed Aug 6 10:16:10 PDT 2008
From: Danny Kukawka <danny.kukawka at web.de>
Subject: reuse code in addons to check privileges
Changed code to be able to reuse code of check_priv() in helpers
like addons. Added new util_helper_priv.{c,h} with a new function
for checking privileges and changed all affected addons to use
this code.
Signed-off-by: Danny Kukawka <danny.kukawka at web.de>
---
Makefile.am | 3
linux/addons/Makefile.am | 10 +-
linux/addons/addon-cpufreq.c | 53 ------------
linux/addons/addon-imac-backlight.c | 55 ------------
linux/addons/addon-macbook-backlight.c | 55 ------------
linux/addons/addon-macbookpro-backlight.c | 65 +--------------
linux/addons/addon-omap-backlight.c | 55 ------------
util_helper_priv.c | 86 ++++++++++++++++++++
util_helper_priv.h | 36 ++++++++
9 files changed, 143 insertions(+), 275 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-20080630-reuse-check_priv-code_for_helper.diff
Type: text/x-diff
Size: 25034 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080806/5a1f3bfc/attachment-0001.diff
More information about the hal
mailing list