Skip to content

u/NothingWorksTooBad

In this archive from Oct 2019 to Nov 2019

0
posts
281
comments
0
media
543
score

In the case of high memory pressure there are actually a few interesting articles regarding the OOM Assassin failing to engage and leading to a hard lock even when swap is available.

IIRC steps to reproduce are:

  1. Consume 85% of the systems resources

  2. Slowly encroach on 100%

  3. Ramp CPU to 100% and allocate the last RAM simultaneously

  4. System dies

Only real solution if youre in a real life scenario where this is an actual risk is to not allow your system to overcommit memory

1 points

The only negative that comes to mind is that a swap file can fragment which can impact performance whereas a swap partition should not experience this fault.

My comment is only really a concern if you use FDE as it simplifies some management nuisances with encrypted swap partitions.

I would be very interested to see that article, I may be uninformed!

1 points

Not all best practice relate to security

I agree, they should however take it into consideration.

IE doing curl url | sudo bash

Will never be best practice even if it is the simplest solution.

Disagreed

I can see how it can be interpreted that way as i failed to provide adequate context. Apologies for that.

Prevent some neophyte thinking AUR has no best practices

This is a great point and not a view I wish to express. I have ammended my original post to include context in bold.

Educate you on security

It is 1% though. It only guarantees the source is where you expect it to be and yiy havent installed obvious malware. This is preliminary. The packagebuild been valid guarantees absolutely nothing regarding the hardiness and content of the target application.

Congratulations you validated your installation of garbage application completed! garbage application however included your shadow file in its debug logs which transmitted over http! Yay!

0 points

First paragraph

Fair. I made an over-reaching statement which is wrong, I should have properly clarified myself to prevent misinterpretation.

Read the pkgbuild

The pkgbuild is less than 1% of the applications threat surface. Validating the source is where you expect it to be is great and all but it doesnt cover the following bases:

  1. Is the source, although valid and hopefully sourced securely, non-malicious?

  2. Is the application delivered audited and security checked to the same standard packages in the official repos are?

God help you if its a binary package sourced over http for example.

Disagree with security concerns

You disagree because you misunderstand what i am saying.

Yes security is important. Anyone security conscious would not touch huge amounts of the AUR because it effectively is the equivalent of running a random package from the internet.

The best practice is to opt out. Youre reframing what i am saying to the concept of general linux desktop security. Please re-read the original post, nowhere do i say desktop linux security isnt a problem.

If youre confused for context, read the thread title, then Ops post, then read my first post.

What are the threats of caching dependancies in an offline build system? Another user tampers with them and compromises the system when a priviledged user executes them or the product they produce.

Is this a reasonable concern for a single user linux desktop? NO

Did you even realise this is an obvious threat? Going by your above post where you put "obvious" in brackets clearly not!!

Does the linux desktop have security concerns? Shit yes, people still use xorg lol.

Am i making the braindead claim it doesnt? NO

What claim AM i making?

The threat of caching dependancies for AUR packages is non-existent in the context of an Arch Desktop User as theur use of the AUR in the firstplace is more likely to compromise their system.

Backpedel

If you call clarification and admission of error backpedaling i will absolutely continue to do that, this isnt a hill worth dying on. I hope you actually read what ive said and process it.

The gist is that use if the AUR is unsupported as nothing there is audited ti a reliable standard, the best practice is to either opt out of the ecosystem or take a subjective "good enough" stance on what you pull in from it.

There is no "best practice" for that "good enough" short of totally understanding the entirety of what youre running. Anything short of that is unreliable guesswork.

-1 points

What rock have i heen living under

Are you illiterate or do you like strawmanning?

In the context of the context of the AUR no best practice regarding removing dependancies exists because:

  1. You have already executed it

  2. There is no multi-user environment to abuse an insecure build server to elevate or further compromise a system

  3. The code youre running from AUR in the first place is untrustworthy because it is not in a supported package.

So it is fair to say none of the "obvious" security concerns from a build environment affect the linux desktop or arch users who use the AUR because by process of using the AUR they agree to run and trust untrusted code, the only best practice for the AUR is to not use it. Once you start using it every "Best practice" for running untrusted code supplied via the AUR is subjective and argueably snake oil.

Disagree? Elaborate please.

Unless your best practice is something like (and exceeding)

  1. Only use -git packages
  2. Validate the pkgbuild
  3. Read and understand the sourcecode
  4. Skip AUR helpers and use makepkg
  5. Properly Sandbox both the compiling code and the resulting code before execution

You have no objectively proveable "best practice", you merely have a subjective "good idea" regarding damage control and a better "good idea" is to avoid the risk.

Its the equivalent of saying wear protective clothing vs dont walk into the structurally unsound building and jump around.

Your stating "there can be enough protective clothing" im saying "there can be, but its a moving goal, simply dont do it"

-2 points

Non-nvidia XPS are 100% worth it.

USBC laptops are amazing as the peripherals for them are largely plug and play.

XPS devices also recieve firmware updates via fwupd so you can actually patch them up without windows!

I would avoid Mac IF you want to go down the bsd/linux path as their HW is a bit of a walled garden for interoperability.

If you trust Apple and have the dollar dollar, yes get a Mac, yes get an iPhone 11.

Be advised that linux support for iphones is subpar and mac hardware support for anything other than MacOS is fought for by tooth and nail.

Edit: Specified the iphone11 unless you like bootrom exploits.

1 points

Never used dstat.

What can it to do that htop + nethogs can't?

Sell it as a tool id want to use as a system administrator and ill look into maintaining it.

Edit: NVM I am blind, this is in community not AUR.

I cant maintain this as im not trustworthy.

2 points

Are those inexperienced help seeking users aware they will more than likely meet with hostility when asked to troubleshoot and they have no idea what anything is?

Do you plan to support them or do you expect the arch community to do that for you even though theyre obtaining the system in a unsupported manner?

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.