* Building SE-ssh. Result: fakeroot: Permission denied
@ 2004-07-30 11:42 Wolfgang Pfeiffer
2004-07-30 11:48 ` Wolfgang Pfeiffer
2004-07-30 15:23 ` Colin Walters
0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-30 11:42 UTC (permalink / raw)
To: SE-Linux
Hi All
I can't build ssh as *non-root* from SE sources from
http://selinux.lemuria.org/newselinux/ssh/
I get a "permission denied" if I try to do this.
ls -l `which gcc`
lrwxrwxrwx 1 root root 8 Jul 28 00:24 /usr/bin/gcc -> gcc-2.95
No problem to build non-SE-sources, patched with SE-files like that:
./ssh.debiansources.sh > ssh.debiansources.log
Here's ssh.debiansources.sh:
#########################################
#!/bin/sh -x
/bin/sh -n $HOME/ssh.debiansources.sh && \
cd $HOME/test/ && \
rm -rf * && \
apt-get source openssh && \
cd openssh-3.8.1p1/ && \
cp $HOME/russellpackages/ssh/openssh-selinux.patch.gz* . && \
gpg --verify openssh-selinux.patch.gz.sign openssh-selinux.patch.gz && \
gzip -cd openssh-selinux.patch.gz | patch -p1 && \
autoconf && \
fakeroot debian/rules binary
#########################################
The problem with the .debs resulting from the script above is that
they're standard, non-SE packages, IINM:
openssh-client-udeb_3.8.1p1-7_powerpc.udeb
openssh-server-udeb_3.8.1p1-7_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-7_powerpc.deb
ssh_3.8.1p1-7_powerpc.deb
Second try, this time using SE sources:
I run the following ssh.getandbuild.sh script for the SE-build like
that:
./ssh.getandbuild.sh &> ssh.log
ssh.getandbuild.sh:
#######################################################
#!/bin/sh -x
/bin/sh -n $HOME/ssh.getandbuild.sh && \
cd $HOME/test/ && \
rm -rf * && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1.orig.tar.gz && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz.sign && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz && \
tar -xzvf *\.tar.gz && \
cd openssh-3.8.1p1/ && \
cp ../openssh_3.8.1p1-7.se1.diff.gz . && \
gzip -cd openssh_3.8.1p1-7.se1.diff.gz | patch -p1 && \
autoconf && \
fakeroot debian/rules binary
####################################################
The script above, according to the ssh.log log file, ends like that:
+ autoconf
+ fakeroot debian/rules binary
/usr/bin/fakeroot: line 146: debian/rules: Permission denied
ssh.log, in nearly all its beauty:
################################
+ /bin/sh -n /home/shorty/ssh.getandbuild.sh
+ cd /home/shorty/test/
+ rm -rf openssh-3.8.1p1 openssh-client-udeb_3.8.1p1-7_powerpc.udeb openssh-server-udeb_3.8.1p1-7_powerpc.udeb openssh_3.8.1p1-7.diff.gz openssh_3.8.1p1-7.dsc openssh_3.8.1p1.orig.tar.gz ssh-askpass-gnome_3.8.1p1-7_powerpc.deb ssh_3.8.1p1-7_powerpc.deb
+ curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1.orig.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 777k 0 1091 0 0 204 0 1:05:01 0:00:05 1:04:56 204
11 777k 11 93571 0 0 15153 0 0:00:52 0:00:06 0:00:46 107k
27 777k 27 210k 0 0 30104 0 0:00:26 0:00:07 0:00:19 113k
42 777k 42 330k 0 0 41400 0 0:00:19 0:00:08 0:00:11 115k
57 777k 57 449k 0 0 50226 0 0:00:15 0:00:09 0:00:06 116k
73 777k 73 569k 0 0 57325 0 0:00:13 0:00:10 0:00:03 117k
88 777k 88 689k 0 0 63154 0 0:00:12 0:00:11 0:00:01 119k
100 777k 100 777k 0 0 66833 0 0:00:11 0:00:11 --:--:-- 119k
+ curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
50 2005 50 1076 0 0 3375 0 --:--:-- --:--:-- --:--:-- 3375
100 2005 100 2005 0 0 6203 0 --:--:-- --:--:-- --:--:-- 226k
+ curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz.sign
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 265 100 265 0 0 839 0 --:--:-- --:--:-- --:--:-- 839
100 265 100 265 0 0 828 0 --:--:-- --:--:-- --:--:-- 0
+ curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 226k 0 1098 0 0 3481 0 0:01:06 --:--:-- 0:01:06 3481
8 226k 8 18778 0 0 33838 0 0:00:06 --:--:-- 0:00:06 73666
60 226k 60 137k 0 0 90851 0 0:00:02 0:00:01 0:00:01 110k
100 226k 100 226k 0 0 98k 0 0:00:02 0:00:02 --:--:-- 113k
+ tar -xzvf openssh_3.8.1p1.orig.tar.gz
openssh-3.8.1p1/
openssh-3.8.1p1/.cvsignore
[ .... removed ... ]
openssh-3.8.1p1/ssh-keysign.0
openssh-3.8.1p1/sshd_config.0
openssh-3.8.1p1/ssh_config.0
openssh-3.8.1p1/stamp-h.in
+ cd openssh-3.8.1p1/
+ cp ../openssh_3.8.1p1-7.se1.diff.gz .
+ gzip -cd openssh_3.8.1p1-7.se1.diff.gz
+ patch -p1
patching file .cvsignore
patching file Makefile.in
patching file auth-pam.c
patching file clientloop.c
patching file config.guess
patching file config.sub
patching file configure.ac
patching file entropy.c
patching file log.c
patching file log.h
patching file monitor_fdpass.c
patching file packet.c
patching file packet.h
patching file readconf.c
patching file readconf.h
patching file serverloop.c
patching file session.c
patching file ssh-keyscan.c
patching file ssh.1
patching file ssh.c
patching file ssh_config
patching file ssh_config.5
patching file sshconnect.c
patching file sshd.8
patching file sshd.c
patching file sshpty.c
patching file version.h
patching file contrib/ssh-copy-id
patching file contrib/redhat/sshd.init
patching file contrib/.cvsignore
patching file scard/.cvsignore
patching file config.h.in
patching file configure
patching file debian/po/it.po
patching file debian/po/POTFILES.in
patching file debian/po/da.po
patching file debian/po/de.po
patching file debian/po/es.po
patching file debian/po/fr.po
patching file debian/po/ja.po
patching file debian/po/nl.po
patching file debian/po/pl.po
patching file debian/po/pt_BR.po
patching file debian/po/ru.po
patching file debian/po/templates.pot
patching file debian/po/ca.po
patching file debian/po/el.po
patching file debian/po/tr.po
patching file debian/po/cs.po
patching file debian/po/zh_CN.po
patching file debian/.cvsignore
patching file debian/README.Debian
patching file debian/changelog
patching file debian/conffiles
patching file debian/config
patching file debian/control
patching file debian/copyright.head
patching file debian/dirs
patching file debian/gnome-ssh-askpass.1
patching file debian/init
patching file debian/moduli.5
patching file debian/postinst
patching file debian/postrm
patching file debian/preinst
patching file debian/prerm
patching file debian/rules
patching file debian/ssh-argv0
patching file debian/ssh-argv0.1
patching file debian/ssh-askpass-gnome.copyright
patching file debian/ssh-askpass-gnome.dirs
patching file debian/ssh-askpass-gnome.postinst
patching file debian/ssh-askpass-gnome.prerm
patching file debian/ssh.default
patching file debian/ssh.pam
patching file debian/templates.master
patching file debian/postrm.debhelper
patching file debian/substvars
patching file debian/openssh-client-udeb.isinstallable
patching file debian/openssh-client-udeb.dirs
patching file debian/templates
patching file debian/openssh-server-udeb.dirs
patching file debian/ssh-askpass-gnome.desktop
patching file debian/ssh-askpass-gnome.png.uue
+ autoconf
+ fakeroot debian/rules binary
/usr/bin/fakeroot: line 146: debian/rules: Permission denied
################################################################
Was it my mistake?
Thanks in anticipation
Wolfgang
--
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building SE-ssh. Result: fakeroot: Permission denied
2004-07-30 11:42 Building SE-ssh. Result: fakeroot: Permission denied Wolfgang Pfeiffer
@ 2004-07-30 11:48 ` Wolfgang Pfeiffer
2004-07-30 13:15 ` Erich Schubert
2004-07-30 15:23 ` Colin Walters
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-30 11:48 UTC (permalink / raw)
To: SE-Linux
On Fri, 2004-07-30 at 13:42, Wolfgang Pfeiffer wrote:
> Hi All
>
[ ... ]
> ssh.getandbuild.sh:
> #######################################################
> #!/bin/sh -x
> /bin/sh -n $HOME/ssh.getandbuild.sh && \
> cd $HOME/test/ && \
> rm -rf * && \
> curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1.orig.tar.gz && \
> curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz && \
> curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz.sign && \
> curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz && \
> tar -xzvf *\.tar.gz && \
> cd openssh-3.8.1p1/ && \
> cp ../openssh_3.8.1p1-7.se1.diff.gz . && \
> gzip -cd openssh_3.8.1p1-7.se1.diff.gz | patch -p1 && \
> autoconf && \
> fakeroot debian/rules binary
> ####################################################
>
> The script above, according to the ssh.log log file, ends like that:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Should say:
Running the script above, according to the ssh.log log file, ends like
that:
>
> + autoconf
> + fakeroot debian/rules binary
> /usr/bin/fakeroot: line 146: debian/rules: Permission denied
>
[ ... ]
Sorry
Wolfgang
--
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building SE-ssh. Result: fakeroot: Permission denied
2004-07-30 11:48 ` Wolfgang Pfeiffer
@ 2004-07-30 13:15 ` Erich Schubert
2004-07-30 19:53 ` Wolfgang Pfeiffer
0 siblings, 1 reply; 6+ messages in thread
From: Erich Schubert @ 2004-07-30 13:15 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: SE-Linux
Hi,
> > /usr/bin/fakeroot: line 146: debian/rules: Permission denied
Try "chmod +x debian/rules"
This file is usually created by a patch, which does not contain file
attributes - therefore you need to make it executeable.
Greetings,
Erich
--
erich@(mucl.de|debian.org) -- GPG Key ID: 4B3A135C (o_
Go away or i'll replace you with a very small shell script. //\
Für jedes Problem gibt es eine Lösung, V_/_
die einfach, klar und falsch ist.
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building SE-ssh. Result: fakeroot: Permission denied
2004-07-30 11:42 Building SE-ssh. Result: fakeroot: Permission denied Wolfgang Pfeiffer
2004-07-30 11:48 ` Wolfgang Pfeiffer
@ 2004-07-30 15:23 ` Colin Walters
1 sibling, 0 replies; 6+ messages in thread
From: Colin Walters @ 2004-07-30 15:23 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: SE-Linux
On Fri, 2004-07-30 at 13:42 +0200, Wolfgang Pfeiffer wrote:
> /usr/bin/fakeroot: line 146: debian/rules: Permission denied
Did you try: chmod a+x debian/rules ?
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building SE-ssh. Result: fakeroot: Permission denied
2004-07-30 13:15 ` Erich Schubert
@ 2004-07-30 19:53 ` Wolfgang Pfeiffer
2004-07-30 22:08 ` Luke Kenneth Casson Leighton
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-30 19:53 UTC (permalink / raw)
To: Colin Walters, Erich Schubert; +Cc: SE-Linux
Colin Walters, Erich Schubert:
Thanks.
On Fri, 2004-07-30 at 15:15, Erich Schubert wrote:
> Hi,
>
> > > /usr/bin/fakeroot: line 146: debian/rules: Permission denied
>
> Try "chmod +x debian/rules"
[ .... ]
This worked ... Thanks .. :)
Result:
openssh-client-udeb_3.8.1p1-7.se1_powerpc.udeb
openssh-server-udeb_3.8.1p1-7.se1_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-7.se1_powerpc.deb
ssh_3.8.1p1-7.se1_powerpc.deb
But there was another obstacle before the package(s ?) finally built:
At the end of a build:
---------------------------
In file included from /usr/include/unistd.h:195,
from ../includes.h:69,
from ../ssh-dss.c:25:
/usr/lib/gcc-lib/powerpc-linux/2.95.4/include/stddef.h:28: machine/ansi.h: No such file or directory
make[1]: *** [ssh-dss.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/shorty/test/openssh-3.8.1p1/build-udeb'
make: *** [build-udeb-stamp] Error 2
-----------------------------
I could solve the issue (Thank you,
"apt-file search ansi.h | grep machine/ansi.h")
above by installing the Debian packages
ecos, ecosconfig, libwxgtk2.4:
$ apt-file search ansi.h | grep machine/ansi.h
ecos: usr/src/ecos/packages/net/common/v2_0/include/machine/ansi.h
newlib-m68hc1x: usr/m68hc11/include/machine/ansi.h
Thank you, "apt-file" ...
But this dependency (ansi.h etc.) is nowhere declared in the ssh
sources, or at least i didn't find something about it: Is this something
one should be worried about? gcc-bug?
Please remember that I intend to upload the packages above for downloads
as soon as I have a place on www somewhere for them ... So I'd like to
make sure not to ruin other folks' systems by building and providing
messed up stuff ...
I'll try to to rebuild
ssh, dpkg, cron, sysvinit, logrotate, and pam
for SE-Linux/ppc this weekend.
All of them with gcc-2.95, running "autoconf" only on the dpkg and ssh
packages.
IINM only the sources for the the packages I can't download and compile
via a
fakeroot apt-get source --compile <somepackage>=<someversion>
might need a "autoconf"
Please let me know if someone thinks the rest of the packages might like
an "autoconf" kiss, too ..
Nice weekend
And thanks to everyone for sharing knowledge ...
Regards
Wolfgang
--
Profile: http://profiles.yahoo.com/wolfgangpfeiffer
and 3 more reasons for Linux:
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.whitehouse.gov%2F>
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.fbi.gov%2F>
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.defenselink.mil>
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building SE-ssh. Result: fakeroot: Permission denied
2004-07-30 19:53 ` Wolfgang Pfeiffer
@ 2004-07-30 22:08 ` Luke Kenneth Casson Leighton
0 siblings, 0 replies; 6+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-07-30 22:08 UTC (permalink / raw)
To: Wolfgang Pfeiffer; +Cc: Colin Walters, Erich Schubert, SE-Linux
typically what you should do when building a package is to to
apt-get build-dep <packagename> before-hand.
that will pull in any source building dependencies for you.
if the package DOESN'T compile when you do this, then you need to
run (and install if you didn't have it) reportbug to report the
problem, mentioning in this case (if it is actually true!) that
a build dependency isn't included.
l.
On Fri, Jul 30, 2004 at 09:53:31PM +0200, Wolfgang Pfeiffer wrote:
> Colin Walters, Erich Schubert:
>
> Thanks.
>
> On Fri, 2004-07-30 at 15:15, Erich Schubert wrote:
> > Hi,
> >
> > > > /usr/bin/fakeroot: line 146: debian/rules: Permission denied
> >
> > Try "chmod +x debian/rules"
>
> [ .... ]
>
> This worked ... Thanks .. :)
>
> Result:
> openssh-client-udeb_3.8.1p1-7.se1_powerpc.udeb
> openssh-server-udeb_3.8.1p1-7.se1_powerpc.udeb
> ssh-askpass-gnome_3.8.1p1-7.se1_powerpc.deb
> ssh_3.8.1p1-7.se1_powerpc.deb
>
> But there was another obstacle before the package(s ?) finally built:
>
> At the end of a build:
> ---------------------------
> In file included from /usr/include/unistd.h:195,
> from ../includes.h:69,
> from ../ssh-dss.c:25:
> /usr/lib/gcc-lib/powerpc-linux/2.95.4/include/stddef.h:28: machine/ansi.h: No such file or directory
> make[1]: *** [ssh-dss.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/home/shorty/test/openssh-3.8.1p1/build-udeb'
> make: *** [build-udeb-stamp] Error 2
> -----------------------------
>
> I could solve the issue (Thank you,
> "apt-file search ansi.h | grep machine/ansi.h")
> above by installing the Debian packages
> ecos, ecosconfig, libwxgtk2.4:
>
> $ apt-file search ansi.h | grep machine/ansi.h
> ecos: usr/src/ecos/packages/net/common/v2_0/include/machine/ansi.h
> newlib-m68hc1x: usr/m68hc11/include/machine/ansi.h
>
> Thank you, "apt-file" ...
>
> But this dependency (ansi.h etc.) is nowhere declared in the ssh
> sources, or at least i didn't find something about it: Is this something
> one should be worried about? gcc-bug?
>
> Please remember that I intend to upload the packages above for downloads
> as soon as I have a place on www somewhere for them ... So I'd like to
> make sure not to ruin other folks' systems by building and providing
> messed up stuff ...
>
>
> I'll try to to rebuild
> ssh, dpkg, cron, sysvinit, logrotate, and pam
> for SE-Linux/ppc this weekend.
> All of them with gcc-2.95, running "autoconf" only on the dpkg and ssh
> packages.
>
> IINM only the sources for the the packages I can't download and compile
> via a
>
> fakeroot apt-get source --compile <somepackage>=<someversion>
>
> might need a "autoconf"
> Please let me know if someone thinks the rest of the packages might like
> an "autoconf" kiss, too ..
>
> Nice weekend
>
> And thanks to everyone for sharing knowledge ...
>
> Regards
> Wolfgang
> --
> Profile: http://profiles.yahoo.com/wolfgangpfeiffer
>
> and 3 more reasons for Linux:
> <http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.whitehouse.gov%2F>
> <http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.fbi.gov%2F>
> <http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.defenselink.mil>
>
>
> --
> 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.
--
--
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-07-30 21:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-30 11:42 Building SE-ssh. Result: fakeroot: Permission denied Wolfgang Pfeiffer
2004-07-30 11:48 ` Wolfgang Pfeiffer
2004-07-30 13:15 ` Erich Schubert
2004-07-30 19:53 ` Wolfgang Pfeiffer
2004-07-30 22:08 ` Luke Kenneth Casson Leighton
2004-07-30 15:23 ` Colin Walters
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.