mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #5856] [MERGED] modif: Standardize and add missing name/hostname checks #5693
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/5856
Author: @kmk3
Created: 6/14/2023
Status: ✅ Merged
Merged: 6/19/2023
Merged by: @kmk3
Base:
master← Head:standardize-name-checks📝 Commits (6)
10e9596main.c: remove redundant has_cntrl_chars check052de47util.c: increase name max length from 64 to 2539473881util.c: check first/last char and allow extra charseb6c611Standardize name/hostname checksa519683Add missing name/hostname checks6489138docs: document NAME VALIDATION in firejail.txt📊 Changes
4 files changed (+78 additions, -41 deletions)
View changed files
📝
src/firejail/main.c(+10 -19)📝
src/firejail/profile.c(+15 -12)📝
src/firejail/util.c(+31 -8)📝
src/man/firejail.txt(+22 -2)📄 Description
Main changes:
invalid_nameto check the name and hostname instead ofad-hoc checks
Note: This makes the hostname validation less strict, though it still
forbids control characters and only numbers.
Relates to #5578 #5708.
See also commit
b4ffaa2("merges; more on cleaning up esc chars",2023-02-14).
Cc: @layderv @netblue30
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.