All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: hqjiang <hqjiang1988@gmail.com>
Cc: selinux@tycho.nsa.gov, bill.c.roberts@gmail.com
Subject: Re: [PATCH] GPSLocation Provider needs socket connection
Date: Thu, 12 Jul 2012 09:36:49 -0400	[thread overview]
Message-ID: <1342100209.8057.28.camel@moss-pluto.epoch.ncsc.mil> (raw)
In-Reply-To: <1342046389-9271-3-git-send-email-hqjiang1988@gmail.com>

On Wed, 2012-07-11 at 15:39 -0700, hqjiang wrote:
> ---
>  system.te |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/system.te b/system.te
> index 1a94c75..f35e9a2 100644
> --- a/system.te
> +++ b/system.te
> @@ -192,3 +192,6 @@ allow system domain:file r_file_perms;
>  # to uart driver and ctrl proc entry
>  allow system gps_device:chr_file rw_file_perms;
>  allow system gps_control:file rw_file_perms;
> +
> +# GpsLocationProvider Connection
> +allow system rild:unix_stream_socket connectto;

This should be written using the unix_socket_connect() macro, which
takes three arguments: clientdomain, sockettype, serverdomain.  What
type is assigned to the socket file?

-- 
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.

  reply	other threads:[~2012-07-12 13:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 22:39 Patches to target denies of GpsLocationProvider and media_app over mtp_device hqjiang
2012-07-11 22:39 ` [PATCH] Correct the denies of android.process.media when accessing to mtp_device hqjiang
2012-07-12 13:35   ` Stephen Smalley
2012-07-11 22:39 ` [PATCH] GPSLocation Provider needs socket connection hqjiang
2012-07-12 13:36   ` Stephen Smalley [this message]
2012-07-12 10:13 ` Patches to target denies of GpsLocationProvider and media_app over mtp_device Robert Craig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342100209.8057.28.camel@moss-pluto.epoch.ncsc.mil \
    --to=sds@tycho.nsa.gov \
    --cc=bill.c.roberts@gmail.com \
    --cc=hqjiang1988@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.