You are not logged in.

#1 2012-06-29 01:00:55

Mister_Magotchi
Member
Registered: 2012-06-08
Posts: 13

Incorrect Permissions on Some /dev/ Nodes After Upgrade on OpenVZ

This is a duplicate of the issue in https://bbs.archlinux.org/viewtopic.php?id=142816 , but it was marked solved, so I assume any responses to it get ignored.

Mister_Magotchi wrote:

I'm having the same issue as the OP, but as falconindy said, the fix used isn't really proper.

I'm using a VPS (OpenVZ), and the same happened to me after updating today (many parts of /dev lost the proper permissions, including null, zero, full, random, and urandom).  I also don't have any files in /etc/udev/rules.d (although /usr/lib/udev/rules.d has a bunch of stuff).

Could someone please help point me in the right direction on finding the culprit for the change in permissions?

Also, the problem exists on two different VPS, but on a physical server I also run, the permissions are correct.

Any ideas would be appreciated.  I'm still struggling with this.

Offline

#2 2012-06-29 09:37:46

Lucky
Member
From: /dev/random
Registered: 2009-08-07
Posts: 28

Re: Incorrect Permissions on Some /dev/ Nodes After Upgrade on OpenVZ

I talkt with falconindy, because i got the same problem so there is the fix (workaround). I know falconindy don't like override permission by udev, but maybe OpenVZ Container need this. If i had time, maybe i will look deeper in it.

Problem was upgrade from udev v182-4 to systemd-tools v184-2, because of removing the following line.

cat /etc/udev/rules.d/50-fix-permission.rules

# Thomas Lucke (Lucky) archlinux@builds.lucky.li
#
# In a OpenVZ container with enabled udev (systemd-tools), you run in some
# permission problems, because the udev rule was removed by this commit:
# http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=378f2e074e38490103f999173bf717a5394170f8

# mem
SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"

btw. please post there if you get problems, because i don't follow the forum.
https://aur.archlinux.org/packages.php?ID=57949

Offline

#3 2012-06-29 17:55:15

Mister_Magotchi
Member
Registered: 2012-06-08
Posts: 13

Re: Incorrect Permissions on Some /dev/ Nodes After Upgrade on OpenVZ

Are you suggesting that I make /etc/udev/rules.d/50-fix-permission.rules with that line, or that I install your custom kernel AUR package?

Offline

#4 2012-06-29 18:55:20

Lucky
Member
From: /dev/random
Registered: 2009-08-07
Posts: 28

Re: Incorrect Permissions on Some /dev/ Nodes After Upgrade on OpenVZ

I run Archlinux as HN with this OpenVZ Kernel and also as OpenVZ Containers, so i run in many problems. (Host & Guest) wink

Your Problem schould be fixed with the udev rule, you don't need the kernel.

But if you run in other container problems feel free to post @ AUR page, maybe there i could help you (you can also post a link to a forum thread with the problem).

Offline

#5 2012-06-29 20:21:15

Mister_Magotchi
Member
Registered: 2012-06-08
Posts: 13

Re: Incorrect Permissions on Some /dev/ Nodes After Upgrade on OpenVZ

That fixed it.  Thanks for the help.

Offline

Board footer

Powered by FluxBB