All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Compile Error when using the userdom_login_user_template() macro...
@ 2016-07-28  9:02 Borg-Cardona, Jack
  2016-07-28  9:43 ` Dominick Grift
  0 siblings, 1 reply; 51+ messages in thread
From: Borg-Cardona, Jack @ 2016-07-28  9:02 UTC (permalink / raw)
  To: refpolicy

Morning,

I've been working on my first custom policies recently and have begun the compile process and am working through the various syntax errors I have made. I have come across one error that I can't decipher, and does not seem to reference the syntax in my own policy but rather the syntax in the tmp/cosapp.tmp folder that is created at compile time.

>From my policy (.te) the offending line is:
userdom_login_user_template(cos)

The error message is:
cosapp.te":61:ERROR 'syntax error' at token 'require' on line 4050:
                require {
#line 61
/usr/bin/checkmodule:  error(s) encountered while parsing configuration
make: *** [tmp/cosapp.mod] Error 1

Looking at the cospp.tmp file more closely I went to line 4050
#line 61
                require {
#line 61

#line 61
                class context contains;
#line 61
                attribute login_userdomain;
#line 61

#line 61
                } # end require
As this is not my syntax I am a bit puzzled as to what is actually wrong?
A couple of thoughts that I had are:
The macro userdom_login_user_template(cos)references a new custom user 'cos_u'  I have not yet added the user file_contexts file to /etc/selinux/targeted/contexts/users so could this be causing the error? If so I am surprised that the gen_user() statement the line before works.
Are there any dependencies I need to consider for this template to work, that I may not have thought about?

Then finally I jumped on the IRC channel yesterday no one was around, what time to people tend to be on it?

Thanks for the help
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20160728/5a4022a5/attachment.html 

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2016-09-02 14:40 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28  9:02 [refpolicy] Compile Error when using the userdom_login_user_template() macro Borg-Cardona, Jack
2016-07-28  9:43 ` Dominick Grift
     [not found]   ` <53E0DE5B854BBC4EA982E3197A0C96D24B111E05@SE-EX021.groupinfra.com>
2016-07-28 11:30     ` Fakim, Walid
2016-07-28 11:53       ` Dominick Grift
2016-07-28 14:28         ` Fakim, Walid
2016-07-28 14:35           ` Dominick Grift
     [not found]             ` <67130EC7AFA3FE4E9290B03665B351F401911E@SE-EX021.groupinfra.com>
2016-08-01 14:48               ` Dominick Grift
2016-08-02 19:07                 ` Fakim, Walid
2016-08-02 19:13                   ` Dominick Grift
2016-08-02 20:04                     ` Fakim, Walid
2016-08-02 20:15                       ` Dominick Grift
2016-08-02 22:19                         ` Fakim, Walid
2016-08-03  7:29                           ` Dominick Grift
2016-08-03  8:24                             ` Borg-Cardona, Jack
2016-08-03 10:30                               ` Fakim, Walid
2016-08-15 13:15                                 ` Fakim, Walid
2016-08-15 13:22                                   ` Dominick Grift
2016-08-15 13:32                                     ` Fakim, Walid
2016-08-15 13:43                                       ` Dominick Grift
2016-08-15 14:07                                         ` Fakim, Walid
2016-08-15 14:13                                           ` Dominick Grift
2016-08-15 14:35                                             ` Fakim, Walid
2016-08-15 14:55                                               ` Dominick Grift
2016-08-15 15:12                                                 ` Fakim, Walid
2016-08-15 15:23                                                   ` Dominick Grift
2016-08-15 15:30                                                     ` Fakim, Walid
2016-08-16 13:36                                                       ` Fakim, Walid
2016-08-16 13:50                                                         ` Dominick Grift
2016-08-16 14:22                                                           ` Dominick Grift
2016-08-16 14:31                                                             ` Fakim, Walid
2016-08-19 12:02                                                             ` Fakim, Walid
2016-08-19 13:14                                                               ` Dominick Grift
2016-08-19 13:54                                                                 ` Fakim, Walid
2016-08-19 15:53                                                                   ` Dominick Grift
2016-08-19 17:21                                                                     ` Fakim, Walid
2016-08-19 17:22                                                                       ` Dominick Grift
2016-08-24 14:16                                                                         ` Fakim, Walid
2016-08-24 14:57                                                                           ` Dominick Grift
2016-08-24 15:21                                                                           ` Dominick Grift
2016-08-24 15:40                                                                             ` Fakim, Walid
2016-08-24 15:43                                                                               ` Dominick Grift
2016-08-31 14:50                                                                                 ` Fakim, Walid
2016-08-31 16:37                                                                                   ` Dominick Grift
2016-09-01 13:26                                                                                     ` Fakim, Walid
2016-09-01 13:34                                                                                       ` Dominick Grift
2016-09-02 11:43                                                                                         ` Fakim, Walid
2016-09-02 14:14                                                                                           ` Dominick Grift
2016-09-02 14:40                                                                                             ` Fakim, Walid
2016-08-16 14:31                                                           ` Fakim, Walid
2016-08-02 20:49                       ` [refpolicy] --EXTERNAL--Re: " Parker, Michael D.
2016-08-02 22:20                         ` Fakim, Walid

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.