Stuff that has not yet gone into the official build.
Post a reply
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Mounting squashfs without root

Sun Mar 17, 2013 1:59 am

It can be an annoyance to need root for some things. This allows squashfs (XZ or zlib) mounts in user-space.
It seems to originate from bsd-land and has bsd licence (not gpl but similar) https://github.com/vasi/squashfuse
I built a deb (wheezy/sid) and posted here: http://exegnulinux.net/refracta/experim ... 1_i386.deb
Deps (all in wheezy): libc6 (>= 2.1), libfuse2 (>= 2.8.1), liblzma5 (>= 5.1.1alpha+20110809), zlib1g (>= 1:1.1.4)
It works, however if anyone is interested and knows more than me about deb-packaging, could use some help with two "lintian" errors.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: Mounting squashfs without root

Sun Mar 17, 2013 5:52 am

What are the lintian errors?
(Best of all the complete debian/ directory somewhere too).
Next post in advance: i probably can't help ...
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Re: Mounting squashfs without root

Sun Mar 17, 2013 1:36 pm

Code:
  `W: squashfuse: hardening-no-relro usr/bin/squashfuse
  W: squashfuse: hardening-no-fortify-functions usr/bin/squashfuse`

├── DEBIAN
│ ├── control
│ └── md5sums
└── usr
├── bin
│ └── squashfuse
└── share
├── doc
│ └── squashfuse
│ ├── changelog.gz
│ ├── copyright
│ ├── README.gz
│ └── TODO
└── man
└── man1
└── squashfuse.1.gz
I built basic debs successfully before but am totally new to dh_make and anything to do with C
EDIT Interesting discovery.. If an iso is mounted as user with fuseiso, root cannot mount the squash within. Squashfuse can.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: Mounting squashfs without root

Sun Mar 17, 2013 6:22 pm

lintian-info gives info about the lintian errors
(you can also find them somewhere on the Web, but i forgot where):
user$ lintian-info -t hardening-no-relro
W: hardening-no-relro
N:
N: This package provides an ELF binary that lacks the "read-only
N: relocation" link flag. This package was likely not built with the
N: default Debian compiler flags defined by dpkg-buildflags. If built
N: using dpkg-buildflags directly, be sure to import LDFLAGS.
N:
N: Refer to http://wiki.debian.org/Hardening for details.
N:
N: Severity: normal, Certainty: certain
N:
N: Check: binaries, Type: binary, udeb
N:
lintian-info -t option means --tags
man dpkg-buildflags looks promising. Like simply editing a config file for the flags.
As you can see: They often are cryptic.
I never heard of dpkg-buildflags before. I would look at the original Makefile and at debian/rules (but as dh_make created it, it should be default).
I think the best bet you got is ask the developer of the package. You also could try debian-mentors IRC channel.
As far it's me that looks like a high-level question.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: Mounting squashfs without root

Sun Mar 17, 2013 6:50 pm

I am in no good shape for a couple of days, so i might well oversee something.
That said:
I don't get those two lintian errors.
What i did:
Go to github repo, at /tags" to the URL and download the tar.gz
Rename it to
mv squashfuse-0.1.tar.gz squashfuse_0.1.orig.tar.gz
tar -xzf *tar.gz
cd squashfuse-0.1/
dpkg-buildpackage
cd ..
lintian -iIEcv --pedantic --color auto ruby-devise*.changes > lintian.log
grep hard lintian.log # gives nix.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: Mounting squashfs without root

Sun Mar 17, 2013 6:56 pm

I don't fully understand what this:
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I"
in my ~/.devscripts means (and if it might be related).
http://debathena.mit.edu/trac/wiki/Gett ... evelopment
In general i go to Raphael Herzog's blog (spelling of name?) to find the configs for .devscripts and .quiltrc (for the first setup of the build environment). Then copy and paste from there (as you see. without understanding it always).
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.