# refracta.freeforums.org

place to talk about refracta

Skip to content

Welcome
Welcome to refracta You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

## Mounting squashfs without root

Stuff that has not yet gone into the official build.
Post a reply
6 posts • Page 1 of 1

### Mounting squashfs without root

by dzz » 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.

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

Top

### Re: Mounting squashfs without root

by nadir » 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 ...
So i herd u liek mudkip?

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

Top

### Re: Mounting squashfs without root

by dzz » Sun Mar 17, 2013 1:36 pm

Code: Select all
  `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.

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

Top

### Re: Mounting squashfs without root

by nadir » 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.
So i herd u liek mudkip?

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

Top

### Re: Mounting squashfs without root

by nadir » 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.
So i herd u liek mudkip?

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

Top

### Re: Mounting squashfs without root

by nadir » 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).
So i herd u liek mudkip?

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

Top

Display posts from previous:
Sort by

Post a reply
6 posts • Page 1 of 1

Return to Experimental

Jump to:

### Who is online

Users browsing this forum: No registered users and 0 guests

Donate Now
ProNight Style by ModphpBB3
Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
A Member of the Crowdgather Forum Community
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation
suspicion-preferred