All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mohamed Hassan <mhassan@cse.psu.edu>
To: selinux@tycho.nsa.gov
Subject: defining a new class in a policy module
Date: Sun, 15 Jun 2008 22:39:12 -0400	[thread overview]
Message-ID: <1213583952.31114.8.camel@cairo> (raw)

Hi,
I created a new policy inside the refpolicy. I am trying to define a new
class inside this module. When I compile, it fails with parsing error:

/usr/bin/checkmodule -M -m tmp/gsmd.tmp -o tmp/gsmd.mod
/usr/bin/checkmodule:  loading policy configuration from tmp/gsmd.tmp
policy/modules/services/gsmd.te:3:ERROR 'syntax error' at token 'Class'
on line 1185:

Class gsmd { send_sms_msg receive_sms_msg };
/usr/bin/checkmodule:  error(s) encountered while parsing configuration


Here is my class definition:
Class gsmd { send_sms_msg receive_sms_msg };

I would like to know how to define a new class in policy module?

Thanks,
-M Hassan


--
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:[~2008-06-16  2:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16  2:39 Mohamed Hassan [this message]
2008-06-16  3:50 ` defining a new class in a policy module Joshua Brindle
2008-06-16  5:24   ` Mohamed Hassan
2008-06-16 13:57     ` Joshua Brindle

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=1213583952.31114.8.camel@cairo \
    --to=mhassan@cse.psu.edu \
    --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.