* [refpolicy] [PATCH] userdomain: rename USB write boolean
@ 2017-06-21 15:28 Guido Trentalancia
2017-06-21 16:23 ` Luis Ressel
0 siblings, 1 reply; 5+ messages in thread
From: Guido Trentalancia @ 2017-06-21 15:28 UTC (permalink / raw)
To: refpolicy
Rename a userdomain boolean to a more meaningful name
and improve its description.
Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
---
policy/modules/system/userdomain.if | 4 ++--
policy/modules/system/userdomain.te | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff -pru a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
--- a/policy/modules/system/userdomain.if 2017-04-26 17:47:14.081423048 +0200
+++ b/policy/modules/system/userdomain.if 2017-06-21 17:12:39.854541009 +0200
@@ -598,7 +598,7 @@ template(`userdom_common_user_template',
seutil_dontaudit_signal_newrole($1_t)
ifndef(`enable_mls',`
- tunable_policy(`user_write_removable',`
+ tunable_policy(`user_write_usb',`
# Read/write floppies and other removable devices
storage_raw_read_removable_device($1_t)
storage_raw_write_removable_device($1_t)
@@ -625,7 +625,7 @@ template(`userdom_common_user_template',
term_getattr_all_ttys($1_t)
')
- tunable_policy(`user_write_removable',`
+ tunable_policy(`user_write_usb',`
# Read/write USB devices (e.g. external removable USB mass storage devices)
dev_rw_generic_usb_dev($1_t)
',`
diff -pru a/policy/modules/system/userdomain.te b/policy/modules/system/userdomain.te
--- a/policy/modules/system/userdomain.te 2017-04-26 17:47:14.081423048 +0200
+++ b/policy/modules/system/userdomain.te 2017-06-21 17:06:00.276542643 +0200
@@ -51,12 +51,12 @@ gen_tunable(user_exec_noexattrfile, fals
## <desc>
## <p>
-## Allow user to write files on removable
+## Allow user to write files on USB
## devices (e.g. external USB memory
-## devices or floppies)
+## devices or floppies, scanners)
## </p>
## </desc>
-gen_tunable(user_write_removable, false)
+gen_tunable(user_write_usb, false)
## <desc>
## <p>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH] userdomain: rename USB write boolean
2017-06-21 15:28 [refpolicy] [PATCH] userdomain: rename USB write boolean Guido Trentalancia
@ 2017-06-21 16:23 ` Luis Ressel
2017-06-21 16:25 ` Guido Trentalancia
0 siblings, 1 reply; 5+ messages in thread
From: Luis Ressel @ 2017-06-21 16:23 UTC (permalink / raw)
To: refpolicy
On Wed, 21 Jun 2017 17:28:53 +0200
Guido Trentalancia via refpolicy <refpolicy@oss.tresys.com> wrote:
> Rename a userdomain boolean to a more meaningful name
> and improve its description.
>
> Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
> ---
> policy/modules/system/userdomain.if | 4 ++--
> policy/modules/system/userdomain.te | 6 +++---
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff -pru a/policy/modules/system/userdomain.if
> b/policy/modules/system/userdomain.if ---
> a/policy/modules/system/userdomain.if 2017-04-26
> 17:47:14.081423048 +0200 +++
> b/policy/modules/system/userdomain.if 2017-06-21
> 17:12:39.854541009 +0200 @@ -598,7 +598,7 @@
> template(`userdom_common_user_template',
> seutil_dontaudit_signal_newrole($1_t) ifndef(`enable_mls',`
> - tunable_policy(`user_write_removable',`
> + tunable_policy(`user_write_usb',`
How on earth is this new name more "meaningful"? If anything, it is
*misleading*. removable_t isn't only used for usb storage devices, but
also for CDs, mmcblk's and various other stuff.
Cheers,
Luis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20170621/145dfe07/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH] userdomain: rename USB write boolean
2017-06-21 16:23 ` Luis Ressel
@ 2017-06-21 16:25 ` Guido Trentalancia
2017-06-21 16:34 ` Luis Ressel
0 siblings, 1 reply; 5+ messages in thread
From: Guido Trentalancia @ 2017-06-21 16:25 UTC (permalink / raw)
To: refpolicy
The interface that is called enables writing to USB devices and nothing
else.
On Wed, 21/06/2017 at 18.23 +0200, Luis Ressel wrote:
> On Wed, 21 Jun 2017 17:28:53 +0200
> Guido Trentalancia via refpolicy <refpolicy@oss.tresys.com> wrote:
>
> > Rename a userdomain boolean to a more meaningful name
> > and improve its description.
> >
> > Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
> > ---
> > policy/modules/system/userdomain.if | 4 ++--
> > policy/modules/system/userdomain.te | 6 +++---
> > 2 files changed, 5 insertions(+), 5 deletions(-)
> >
> > diff -pru a/policy/modules/system/userdomain.if
> > b/policy/modules/system/userdomain.if ---
> > a/policy/modules/system/userdomain.if 2017-04-26
> > 17:47:14.081423048 +0200 +++
> > b/policy/modules/system/userdomain.if 2017-06-21
> > 17:12:39.854541009 +0200 @@ -598,7 +598,7 @@
> > template(`userdom_common_user_template',
> > seutil_dontaudit_signal_newrole($1_t) ifndef(`enable_mls',`
> > - tunable_policy(`user_write_removable',`
> > + tunable_policy(`user_write_usb',`
>
> How on earth is this new name more "meaningful"? If anything, it is
> *misleading*. removable_t isn't only used for usb storage devices,
> but
> also for CDs, mmcblk's and various other stuff.
>
> Cheers,
> Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH] userdomain: rename USB write boolean
2017-06-21 16:25 ` Guido Trentalancia
@ 2017-06-21 16:34 ` Luis Ressel
2017-06-21 17:01 ` Guido Trentalancia
0 siblings, 1 reply; 5+ messages in thread
From: Luis Ressel @ 2017-06-21 16:34 UTC (permalink / raw)
To: refpolicy
On Wed, 21 Jun 2017 18:25:09 +0200
Guido Trentalancia via refpolicy <refpolicy@oss.tresys.com> wrote:
> The interface that is called enables writing to USB devices and
> nothing else.
No. userdomain.te calls two interfaces when this
boolean is enabled:
storage_raw_write_removable_device (writing to
removable_t block devices), and dev_rw_generic_usb_dev (writing to
usb_device_t char devices).
Cheers,
Luis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20170621/937c1122/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH] userdomain: rename USB write boolean
2017-06-21 16:34 ` Luis Ressel
@ 2017-06-21 17:01 ` Guido Trentalancia
0 siblings, 0 replies; 5+ messages in thread
From: Guido Trentalancia @ 2017-06-21 17:01 UTC (permalink / raw)
To: refpolicy
Yes, you are right !
Please drop this patch then !!
It is misplaced...
Regards,
Guido
On Wed, 21/06/2017 at 18.34 +0200, Luis Ressel wrote:
> On Wed, 21 Jun 2017 18:25:09 +0200
> Guido Trentalancia via refpolicy <refpolicy@oss.tresys.com> wrote:
>
> > The interface that is called enables writing to USB devices and
> > nothing else.
>
> No. userdomain.te calls two interfaces when this
> boolean is enabled:
> storage_raw_write_removable_device (writing to
> removable_t block devices), and dev_rw_generic_usb_dev (writing to
> usb_device_t char devices).
>
> Cheers,
> Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-21 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21 15:28 [refpolicy] [PATCH] userdomain: rename USB write boolean Guido Trentalancia
2017-06-21 16:23 ` Luis Ressel
2017-06-21 16:25 ` Guido Trentalancia
2017-06-21 16:34 ` Luis Ressel
2017-06-21 17:01 ` Guido Trentalancia
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.