Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread jim hook
test$ cd rmplayer test$ test$ type cd cd is a function test$ test$ tail -4 .profile cd() { echo rmplayer } test$ test$ uname -mrs OpenBSD 6.9 amd64 test$ Thinking of that home dirs could be on a shared storage, that can be accessed by others and maliciously modify the ".profile", etc. files of th

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Ingo Schwarze
Hi Jim, jim hook wrote on Wed, Sep 08, 2021 at 11:24:18AM +0200: > test$ cd > rmplayer > test$ > test$ type cd > cd is a function > test$ > test$ tail -4 .profile > cd() > { > echo rmplayer > } > test$ > test$ uname -mrs > OpenBSD 6.9 amd64 > test$ Those are useful features. I doubt you will fi

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Ian Darwin
On Wed, Sep 08, 2021 at 11:24:18AM +0200, jim hook wrote: > test$ cd > rmplayer > test$ > test$ type cd > cd is a function > test$ > test$ tail -4 .profile > cd() > { > echo rmplayer > } > test$ > test$ uname -mrs > OpenBSD 6.9 amd64 > test$ > > Thinking of that home dirs could be on a shared stor

Re: Recover partition table/FFS2 after overwrite?

2021-09-08 Thread Thomas Windisch
I mangaged to restore my drive using #fdisk -iy #disklabel -R #fsck Thanks Geoff and David. After reinstalling OpenBSD everything seems so be running fine. Almost. When I now run grep I get this: $ grep warning: libc.so.96.0: minor version >= 1 expected, using it anyway ld.so: grep: can't loa

Re: PC Engines apu4 network performance

2021-09-08 Thread Elias Carter
Paolo, Your results match mine. I was never able to get my apu4 past about 600 Mb/s. I installed pfsense on my apu4 and was able to get speeds closer to 1 Gb/s so there does appear to be some bottleneck in openbsd which holds the hardware back. If I recall correctly the i210at hardware checksum o

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? > Date

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? >

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? directory p

PC Engines apu4 network performance

2021-09-08 Thread Paulo Manoel Mafra
Hello guys, I've configured a pc engines apu4 with openbsd 6.9 and I verified the network performance is around 550 mbit/s with pf and 700 mbit/s without. Is there any known issue for that poor performance ? Running another OS on the same hardware I can reach some like 920 mbit/s. I've googled fo

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Sean Kamath
> On Sep 8, 2021, at 02:24, jim hook wrote: > ... > ex.: "unset cd" would help, but any solution in general? I alias ‘ls’ to my preferred args. Sometimes I don’t want those. In ksh, I just use \ls to not use the alias. I confirmed \cd will use the builtin (at least on ksh) with: $cd() { >

Re: Recover partition table/FFS2 after overwrite?

2021-09-08 Thread Stuart Henderson
On 2021-09-08, Thomas Windisch wrote: > I mangaged to restore my drive using > > #fdisk -iy > #disklabel -R > #fsck > > Thanks Geoff and David. > > After reinstalling OpenBSD everything seems so be running fine. > Almost. > > When I now run grep I get this: > > $ grep > warning: libc.so.96.0: min

Re: PC Engines apu4 network performance

2021-09-08 Thread Stuart Henderson
On 2021-09-08, Paulo Manoel Mafra wrote: > Hello guys, > I've configured a pc engines apu4 with openbsd 6.9 and I verified the > network performance is around 550 mbit/s with pf and 700 mbit/s without. > > Is there any known issue for that poor performance ? > Running another OS on the same hardwa

Re: Bridging OpenVPN and LAN

2021-09-08 Thread Stuart Longland
On Sun, 5 Sep 2021 16:52:58 +0300 kasak wrote: > You should add ip pool for bridge in server config. > > like this: > > server-bridge 10.70.0.1 255.225.255.0 10.70.0.100 10.70.0.110 You should *only* do this if you have configured your DHCP server to _not_ hand out IP addresses in that range.

Re: Why is tmpfs not working on OpenBSD?

2021-09-08 Thread Chris Bennett
On Mon, Sep 06, 2021 at 12:44:59AM +, iio7 wrote: > > > Why isn't it removed? It is kinda "misguiding". > > > > Shucks, you must feel terrible about our decision. > > Well, compared to the fact that you, back in 2016, wrote that, > "We don't spend hours of our time adding unimportant notes to