Message-ID: <1342728396.5158.3.camel@moss-pluto.epoch.ncsc.mil> Subject: Re: [PATCH 1/1] We make two changes: 1. GPS-chip-requires-uart-rts-level-control; 2. We label our specific context to misc/camera(./*) in order to allow camera calibration. From: Stephen Smalley To: hqjiang Cc: selinux@tycho.nsa.gov, bill.c.roberts@gmail.com Date: Thu, 19 Jul 2012 16:06:36 -0400 In-Reply-To: <1342718502-29105-1-git-send-email-hqjiang1988@gmail.com> References: <1342718502-29105-1-git-send-email-hqjiang1988@gmail.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Thu, 2012-07-19 at 10:21 -0700, hqjiang wrote: > --- > init.tuna.rc | 1 + > sepolicy.genfs_contexts | 2 ++ > 2 files changed, 3 insertions(+), 0 deletions(-) > create mode 100644 sepolicy.genfs_contexts You did not specify the project being targeted by the patch, and your subject line is too long (the longer description goes in the body before the --). Example of a good subject line: Subject: [PATCH 1/1] device/samsung/tuna: camera and gps control labeling > > diff --git a/init.tuna.rc b/init.tuna.rc > index 7745161..aa57120 100755 > --- a/init.tuna.rc > +++ b/init.tuna.rc > @@ -22,6 +22,7 @@ on post-fs-data > # camera calibration > mkdir /data/misc/camera 0770 media media > mkdir /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 0770 media media > + restorecon /data/misc/camera > > # remount factory as read-only > mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount > diff --git a/sepolicy.genfs_contexts b/sepolicy.genfs_contexts > new file mode 100644 > index 0000000..56ef603 > --- /dev/null > +++ b/sepolicy.genfs_contexts > @@ -0,0 +1,2 @@ > +# This proc entry is for CSR GPS chip on Samsung Tuna Board. > +genfscon proc /mcspi1_cs3_ctrl u:object_r:gps_control:s0 -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.