Skip to contentSkip to conversation

Problems compiling selinux on SuSe 7.2

DISCUSSION [email protected] 5 participants 9 messages Sep 11, 2002 – Sep 17, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi:

I am trying to compile selinux on SuSe 7.2. I got the last package version of
lsm-2.4-selinux-2002082308.tgz with kernel 2.4.19 and got the following error:
I have tried with kerberos 5 from mandrake distribution and also with heimdal that comes with suse. But the error is the same, namely

make[3]: Leaving directory `/usr/src/selinux/utils/openssh-3.4p1/openbsd-compat' gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -DWITH_SELINUX -I/usr/local/
selinux/include -I. -I. -I/usr/kerberos/include
-DSSHDIR=\"/etc/ssh\" -D_PATH_S SH_PROGRAM=\"/usr/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/openssh/s sh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/libexec/openssh/sftp-server\" -D_PATH_SS H_KEY_SIGN=\"/usr/libexec/openssh/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\"

             -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"
-DSSH_RAND_HELPER=\"/usr/libexec/opens             sh/ssh-rand-helper\"
-DHAVE_CONFIG_H -c monitor_wrap.c
In file included from auth.h:42,
                 from monitor_wrap.c:36:

/usr/include/krb5.h:1930: parse error before `profile_t' make[2]: *** [monitor_wrap.o] Error 1
make[2]: Leaving directory `/usr/src/selinux/utils/openssh-3.4p1' make[1]: *** [xopenssh] Error 2
make[1]: Leaving directory `/usr/src/selinux/utils'
make: *** [quickinstall] Error 2

Any suggestion about getting rid of this error?

Thanks

[email protected]

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · On Wed, 11 Sep 2002 17:01, [email protected] wrote:

I am trying to compile selinux on SuSe 7.2. I got the last package version
of lsm-2.4-selinux-2002082308.tgz with kernel 2.4.19 and got the following
error: I have tried with kerberos 5 from mandrake distribution and also with heimdal that comes with suse. But the error is the same, namely

Probably better to ask Brian than me, Brian's the Heimdal expert.

Do you REALLY need kerberos? If not then it's probably best to compile without support.

If you do need kerberos then you'll probably want SE support on the kerberos ticket server first and we don't seem to have a policy for that yet, maybe you or Brian should write it first...

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 5 lines · Russell Coker
Quoted 4 lines · On Wed, 11 Sep 2002 17:01, [email protected] wrote:

I am trying to compile selinux on SuSe 7.2. I got the last package version
of lsm-2.4-selinux-2002082308.tgz with kernel 2.4.19 and got the following
error: I have tried with kerberos 5 from mandrake distribution and also with heimdal that comes with suse. But the error is the same, namely

What version of heimdal is this? I am not familiar with Suse.

Quoted 1 line

Probably better to ask Brian than me, Brian's the Heimdal expert.

The API from Heimdal and MIT Kerberos isn't 100% compatable.

It is possible that openssh needs to be patched before it will compile against Heimdal.

I know other people have compiled openssh with Heimdal, I haven't done it myself though.

Quoted 2 lines

Do you REALLY need kerberos? If not then it's probably best to compile without support.

If you wish to use Kerberos, and know what Kerberos is, then you probably want it.

Otherwise, if the only reason you got here is because it tried to automatically link in the Kerberos libraries, you would be better off disabling kerberos support in openssh.

Quoted 3 lines

If you do need kerberos then you'll probably want SE support on the kerberos ticket server first and we don't seem to have a policy for that yet, maybe you or Brian should write it first...

Its on my TODO list. Along with other items like "update Debian Heimdal to latest upstream version" and "help get the latest krb4 into testing, as it is holding up lots of other packages (including Heimdal)".

Signature · 6 lines
Brian May <[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 5 lines · Brian May
Quoted 2 lines

Do you REALLY need kerberos? If not then it's probably best to compile without support.

If you wish to use Kerberos, and know what Kerberos is, then you probably want it.

Of course.

Quoted 3 lines

Otherwise, if the only reason you got here is because it tried to automatically link in the Kerberos libraries, you would be better off disabling kerberos support in openssh.

Yes, I got the impression that the person asking the questions may have had this problem (or alternately they may have patched a copy of the SSH source that was prepared by someone who uses kerberos).

Quoted 7 lines
Quoted 3 lines

If you do need kerberos then you'll probably want SE support on the kerberos ticket server first and we don't seem to have a policy for that yet, maybe you or Brian should write it first...

Its on my TODO list. Along with other items like "update Debian Heimdal to latest upstream version" and "help get the latest krb4 into testing, as it is holding up lots of other packages (including Heimdal)".

Sounds like you're really busy.

Are you sure you want to take over the woody port of SE Linux?

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw

http domain

Does the standard install of SELinux already have the domain set for http? If so, to get it started, all I need to do is to enforce the default policy? thanks,
ryan

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw

Re: http domain

Quoted 3 lines · Ryan Washington

Does the standard install of SELinux already have the domain set for http? If so, to get it started, all I need to do is to enforce the default policy? thanks,

The default policy includes support for Apache.

But of course if you do anything serious you'll need to make changes anyway.

Russell Coker

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#6 lore raw

Re: http domain

In reply to Ryan Washington
Quoted 2 lines · Ryan Washington

Does the standard install of SELinux already have the domain set for http? If so, to get it started, all I need to do is to enforce the default policy?

Yes, although you may require some customization of the domain for your particular setup. There is an example policy for Apache originally contributed by MITRE in selinux/policy/domains/program/apache.te. The policy is described in a paper available from
http://www.mitre.org/support/papers/tech_papers_01/gosselin_apache/index.shtml.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#7 lore raw
In reply to Russell Coker
Quoted 3 lines · Russell Coker

Yes, I got the impression that the person asking the questions may have had this problem (or alternately they may have patched a copy of the SSH source that was prepared by someone who uses kerberos).

I wasn't sure. I thought it safest to ask. You are probably correct though.

Quoted 5 lines
Quoted 3 lines

Its on my TODO list. Along with other items like "update Debian Heimdal to latest upstream version" and "help get the latest krb4 into testing, as it is holding up lots of other packages (including Heimdal)".

Sounds like you're really busy.

Its not that I am busy, its just that my TODO list is always long ;-).

Its simply a matter of prioritising the important stuff first, and leaving the boring, unwanted tasks (eg. finding out why / on two of my Unix systems is almost full, even though I have 2 and 2.5 gig allocated, respectively and /var on a seperate partition) end up falling to the bottom ;-).

Quoted 1 line

Are you sure you want to take over the woody port of SE Linux?

I have already done most of the packages, there are only two more left...

Signature · 6 lines
Brian May <[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#8 lore raw
Quoted 4 lines · Brian May
Quoted 1 line

Are you sure you want to take over the woody port of SE Linux?

I have already done most of the packages, there are only two more left...

Great! Please put a notice here and on debian-devel with the settings for APT when it's complete, and I'll remove my repository of woody packages.

Also some people here like to know how many downloads there are. Posting regularly summaries or publishing a URL for webstats would be appreciated.

Finally, it would be best if you put them on sws as your server doesn't have enough bandwidth (you could do what I do and prepare them locally and use rsync).

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.