Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nftables man and permission
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lloydz
n00b
n00b


Joined: 31 Aug 2019
Posts: 38
Location: Germany

PostPosted: Sat Aug 31, 2019 9:27 am    Post subject: nftables man and permission Reply with quote

Hello,

since a few days i'm using nftables tool "nft" for network firewall. if i
open the manual with: man nft it shows me a empty page:

Manual page nft(8) byte 0/0 (END) (press h for help or q to quit)

The file under "/usr/share/man/man.8" looks like:

-rw-r--r-- 1 root root 20K Aug 28 12:28 /usr/share/man/man8/nft.8.bz2

Why is my man page empty?

I'am not an expert with man, but if i look via bzless on that file, it seams good.
So why can't i use "man nft" to read the man page, ofther man pages works fine.


My second question is more interessting for developer or package maintainer:

If i execute "rc-service nftables save" or "/etc/init.d/nftable save" the first time,
i got a rule-save file with the following permission:

----rw-rw- 1 root root 1.9K Aug 30 12:06 /var/lib/nftables/rules-save

Only root-group an world RW-permission, root-user none, is this wanted?

I change the permission with chmod to 640. The script "/etc/init.d/nftables"
or "/usr/libexec/nftables/nftables.sh" do not change the permission, so i think
it comes from the installation first.

I do the "workaround" and after my first change, the permissions never changed by an other script,
so i can live with that. But should also fixed?


bye.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Aug 31, 2019 5:12 pm    Post subject: Reply with quote

Something is very wrong there, the initscript should be creating that file with mode 0600, not 0066.

For the man page, does it work if you re-emerge nftables with PORTAGE_COMPRESS="" PORTAGE_COMPRESS_FLAGS="" set? Do other .bz2 pages have a problem? bzip2 support is optional on the man viewer, but it's usually on by default.
Back to top
View user's profile Send private message
Lloydz
n00b
n00b


Joined: 31 Aug 2019
Posts: 38
Location: Germany

PostPosted: Wed Sep 18, 2019 10:49 am    Post subject: solution at bugzilla #691326 Reply with quote

Hi,

now i close this case. Because the second error with file permission for
"/var/lib/nftables/rules-save" has also an Bugreport #691326
here on Gentoo Bugzilla which is
closed now.
Since a few days there exists a patch, which writes the file with the
correct file permission.

The first problem with the manual page of nft - i think it has to do
with my system, because it is running with mucl as glibc replacement.

As example, in my daily cron mail i saw a few errors like this:
Code:

manconv: iconv_open ("UTF-8//IGNORE", "utf-8"): Invalid argument
manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
manconv: iconv_open ("UTF-8//IGNORE", "us-ascii"): Invalid argument

I think it has to do with that and i will examine in this direction
for my self first.
At the moment i help my self with the man pages from the internet.
I think it has also nothing to do with the topic network and security.

many thanks!

good bye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum