Skip to content

u/stebalien

In this archive from Jul 2011 to Oct 2016

1
posts
48
comments
0
media
534
score

it is needed for SELinux

You'd need to recompile your kernel (and quite a few applications) to get SELinux working. For SELinux, recompiling the kernel is nothing compared to the other work involved in getting it working.

Lack of SELinux support is probably why Arch doesn't enable CONFIG_AUDIT (SELinux is the primary consumer of CONFIG_AUDIT). Additionally, this is why Arch shouldn't enable CONFIG_AUDIT. For 99.9% of users, the only thing CONFIG_AUDIT will do is increase the kernel attack surface/the number of things that can go wrong (the code is still there even if it's disabled at runtime).

Yes, recompiling the kernel takes a while but it's not really that hard (compared to, e.g., recompiling Firefox...).

Edit: There's some discussion about CONFIG_AUDITSYSCALL here: https://bugs.archlinux.org/task/42954

12 points

First point: because I can. It's probably a slightly faster but I mainly do it for simplicity. It cuts out an intermediate operating system (the boot loader) and means I don't have to reexec systemd.

Second point: lol, no :`(. GRSecurity is nice because it prevents entire classes of vulnerabilities (or at least makes them much harder to exploit). It's also pretty much fire-and-forget (once you configure it...) as long as you install paxd. Tomoyo, on the other hand, requires constant tweaking unless you're running a server and never really changing your software stack. However, that's the case for all MAC systems not configured by the distro. I went with Tomoyo because I found it's configuration process to be the least painful (choosing between GRSecurity's RBAC, Tomoyo, SELinux, and AppArmor). Basically, it has a nice learning mode and a decent TUI.

However, the nice thing about manually maintaining a Tomoyo policy is that I generally know what's going on in my system (what processes are listening on what ports, connecting to what services, reading/writing what files).

2 points

I have no idea; I haven't actually bothered benchmarking anything. Most desktop apps are either IO bound or use the GPU for intensive processing so it shouldn't make much of a difference for day-to-day computing. It might make sense to recompile Firefox (I believe DOM layout happens on the CPU) but Firefox is a beast (recompiling it on a laptop takes a while and may OOM).

2 points

The default kernels are compiled to work on all CPUs of the given architecture (x86, x86_64). However, many CPUs have additional features/instructions. If you pass -march=native to gcc, gcc will target the current CPU and can make use of these extra instructions to produce faster code. It should be noted that, in my experience, this doesn't really make that much of a difference.

19 points

Compression still takes time. Also, zram /tmp memory usage will probably be worse assuming the files are actively being used because Linux will have to store the files in memory twice: once in the cache (uncompressed), once in zram (compressed).

Also, IIRC (I can't find where I read this), Linux will try swapping out of tmpfs before it swaps applications.

1 points

Changes:

  • pacman can run hooks pre- and post-transaction. See the alpm-hooks(5) man page for details and an example hook (FS#2985)
  • pacman can now sync and read .files databases (-Fy) and do basic searching for files in sync repos (-Fs, -Fo) (FS#23787)
  • pacman can check the validity of the local and sync databases (-Dk and -Dkk respectively). This replaces the 'testdb' software (FS#42444)
  • the package description output (-Si ,-Qi) is now correctly aligned regardless of locale (FS#43983, FS#45997)
  • ensure internal package version matches database version after downloading (FS#45687)
  • improved signal handling and lock file removal (FS#45995, FS#46375, FS#47011)
  • print more information when encountering dependency errors
  • improved configuration parsing with a new ini parser
  • handle a symlink to a directory being replaced by a directory
  • The 'pkgbase' variable is now recorded in the local package db
  • Remove support for ".pacorig" files. Instead, packages files are extracted as a ".pacnew" and the original stays in place
  • prevent install scriptlets using stdin for user interaction
  • provides are considered when displaying optdepends install status (FS#36412)
  • always update corrupt database whether or not a newer version is found on the remote server
  • fix build issues when libarchive was in a non-standard location
  • Many issues found using Coverity were address (primarily freeing memory on error conditions)
  • The pactest suite was upgraded to allow parallel testing using the tap.sh library
  • makepkg:
    • makepkg is in the process of being split into a library. This allows various areas to be extended by adding a file into libmakepkg (e.g. package/PKGBUILD checking, adjusting files before creating the final package).
    • PKGBUILD variables checked to be arrays or not as appropriate
    • pkgver() and prepare() are now run with --noextract (FS#43498, FS#46800)
    • the ability to build a single package in a PKGBUILD has been removed
    • the output when checking checksums for architecture specific sources is improved (FS#43444)
    • improved handling of bazaar sources (FS#43448)
    • fix source package signing with SRCPKGDIR set
    • add option to compress png images with optipng
    • add --packagelist option, which lists all packages build from a PKGBUILD
    • add --printsrcinfo flag to print SRCINFO file for a PKGBUILD
    • record build information in a .BUILDINFO file
    • add whirlpool to list of hashing options (FS#45859)
  • makepkg-template:
    • support multiple --template-dir
    • added a testsuite
  • repo-add:
    • Always generate the .files database
    • Only update database if the entire operation succeeds
    • unarmored package signatures are rejected
  • contrib:
    • checkupdates: give error when fakeroot is missing
    • checkupdates: provide packages versions in output
    • checkupdates: fix failure in some locales (FS#40405)
    • paccache: Add -q/--quiet
    • pacdiff: do not require DIFFPROG for -o/--output (FS#46184)
    • zsh_completion: updated to fix many missing options
56 points

you may insist that people should not call software under permissive licenses open source, but free software

No! Free software uses copyleft licences to guarantee your freedom. Open source licenses (e.g. MIT, BSD) are not free software licences (e.g. GPL) because they are more permissive and don't guarantee the same freedoms.

/takes off Stallman hat.

0 points

I hadn't thought of downloading the source from packages.archlinux.org. So, as much as humanly possible I should be using pacman to manage things, so if I want to install new software first use pacman, if the version I want isn't there check the AUR, then check packages.archlinux.org and download from there, and finally as a last resort compile from upstream?

Actually, you can (and should) just edit the PKGBUILD itself to build a new version. Usually, all you need to do is edit the pkgver variable and update the checksums (md5sum, sha*sum, ...) but sometimes it can be more involved (you may have to add/remove dependencies, change download links, etc...).

If you want a package not in the repository, I recommend you create a new PKGBUILD from scratch. One of the best features of pacman is that pacman packages are really easy to create (unlike debian packages...).

I find the best way I learn about things has always been to do things how I think they should be done, let my system break, then fix it and learn why I did was wrong and what the right way should be.

Absolutely.

Okay, so I started digging into to ABS - just installed it, made the folder and ran abs to sync the packages. So it appears to me that what this does is download everything from the repos, then I run makepkg and install the .tar.xz. Because it's everything in the repos, why would somebody do this rather than just, say, pacman -S slim?

I have no idea but I'm guessing this has something to do with how the devs do development. That's why I suggested you use pbget or that small script in my previous comment so you can download the source files for individual packages.

It also didn't pull packages from testing, so I went to the package I wanted and I can see (forgive me, I've never looked around the packages site before) that I can download the .tar.xz file I want from there, then I can run pacman -U and it installs. For this specific case, is that really all I would want to do?

That's equivalent to enabling testing and upgrading the target package (the .pkg.tar.xz is a binary package). To download the source packages, you have to follow the "Source files" link on the right and download them individually... (the other reason I recommend using a script).

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.