khadas / fenix

One-stop script set to build Ubuntu/Debian images
GNU General Public License v2.0
211 stars 135 forks source link

Fix missing capabilities resulting into ping not working for unprivileged users #311

Closed viraniac closed 1 month ago

viraniac commented 1 month ago

GNU Tar only seems to restore extended attributes that matches user.* pattern by default when --xattr pattern is used. Lets specifying that we want all extended attributes to be restored.

This fixes ping requiring sudo privileges. Now ping, arping, fping, etc in the image are keeping their cap_net_raw=ep capabilities as expected.