From: "Michael Luu" <mluu@cougaarsoftware.com>
To: <selinux@tycho.nsa.gov>
Subject: writing a java policy file
Date: Wed, 30 Jul 2003 19:02:10 -0700 [thread overview]
Message-ID: <003e01c35707$c0cf6230$ef0111ac@mluudt> (raw)
hi all,
i'm trying set up a simple java policy whereby i only allow a specific
user (in java_r role) to run a java (type java_t)application that
communicates with a server (e.g., www.yahoo.com). i'm making some
progress, but can't set up the te and dependent files correctly. when i
test the policy using sepcut, i get name conflict for type java_t. i'm
not sure what else i need to do or if these policy files are correct.
this is what i have done so far:
1. added the java_r to a user that should only have access to run java
(in the users file)
2. added the java_r in the user domain files (user.te and
user_macros.te)
based on
http://sourceforge.net/docman/display_doc.php?docid=15285&group_id=21266
#gs8AddUserDom
3. i created a java.te file:
#DESC jvm policy
#
# File: java.te
# Author(s):
#
type java_port_t, port_type;
type java_t, domain, privowner;
allow java_t user_home_dir_type:file { read };
allow java_t user_home_dir_type:dir { getattr search };
allow java_t { java_port_t }:tcp_socket name_bind;
4. i created a java.fc file:
#DESC jvm policy
#
# File: java.fc
# Author(s):
#
/usr/java/j2sdk.*/include system_u:object_r:java_modules_t
/usr/java/j2sdk.*/lib system_u:object_r:java_modules_t
/usr/java/j2sdk.*/jre system_u:object_r:java_modules_t
/usr/java/j2sdk.*/bin system_u:object_r:java_exec_t
thanks for you help!
mike
--
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.
next reply other threads:[~2003-07-31 1:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-31 2:02 Michael Luu [this message]
2003-07-31 3:30 ` writing a java policy file Colin Walters
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='003e01c35707$c0cf6230$ef0111ac@mluudt' \
--to=mluu@cougaarsoftware.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.