Linux - an idea for more flexibility and security.

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
stemsee

Linux - an idea for more flexibility and security.

#1 Post by stemsee »

I don't really like that there are more than one bin and sbin directories. But just linking the others to the /bin and /sbin poses problems.

I have this idea of managing directories in a slightly unorthodox way.

My idea is that we start with the / and its directories /bin /etc /lib /lib64 etcetera. But from then on we only use discrete savefiles named accordingly to mount on those / dirs. Also in for example sbin.4fs there is also a nested sbin.4fs which mounts on /usr/sbin. And all subsequent sbins are nested in parent sbin.4fs.... likewise for all other duplicate dirs. That takes care of backward compatibility.

This is more similar to a full install, and the savefiles can easily be resized, and managed and swapped with versions/snapshots.

I like the idea and I hope to have a working proof of concept soon. It will require a new init. Also all parts of the system can be stored anywhere, usb sticks, network storage, ntfs, fat32, encrypted individually etc .... who could hack it?

stemsee

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: Linux - an idea for more flexibility and security.

#2 Post by Moose On The Loose »

stemsee wrote:I don't really like that there are more than one bin and sbin directories. But just linking the others to the /bin and /sbin poses problems.
[...]
I think I see your point and it may be a good one.
You may want to start with creating a directory on the host machine for the save files to all live in.
You can then make a subdirectory of that one as a place to keep previous copies so that the user can save a copy before they install the next thing.

As it is, puppy is very secure partly because it is not like the systems that are commonly targeted and partly due to its nature. Keeping all the save files on a memory stick in your pocket is a good way to not have someone mess with the save files.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#3 Post by bigpup »


The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#4 Post by rufwoof »

The different folders exist in part for security reasons. Each extra line of code is a potential security risk (might contain a bug that could be exploited to circumvent security). So in the initial boot phase you only want the minimum bin/sbin ...etc. files/folders available. At a later phase of the boot sequence so other bin/sbin files (folders) are pulled in. And then once booted, user/site bin/sbin files might be added separately at different sites (usr/local/bin's ..etc.).

When a single site/user however, and given standard usage of root userid, its much less of a issue. But even then there may be times when the user still wants the additional separation. One of my boots for instance is just 11MB in size combined vmlinux/initrd - that lowers the potential attack vectors to a minimum. But such requirements/need are very low nowadays.

I did at one time ponder a similar arrangement of using multiple sfs's separated by folders/content. home.sfs, root.sfs, etc.sfs ...etc. as that way you can reform a sfs (with its changes) quicker than having to reform a entire single (large) main sfs. Handy also if you also only want to save some changes, not others. I posted this earlier which is yet another variant http://murga-linux.com/puppy/viewtopic. ... 90#1040290 where changes are stored back to the main sfs in a manner that (mostly) avoids having to rebuild the entire sfs to incorporate changes.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

Post Reply