Bug 239385 - syslog: make it posible to have "." in app_name
Summary: syslog: make it posible to have "." in app_name
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-22 20:23 UTC by John D.
Modified: 2019-07-22 20:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John D. 2019-07-22 20:23:05 UTC
App_name field in current syslog message parsed with this code:
----- >8 -------
	app_name_length = strspn(m,
	    "abcdefghijklmnopqrstuvwxyz"
	    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	    "0123456789"
	    "_-/")
---- >8 --------
What if it will look like that:
----- >8 -------
	app_name_length = strspn(m,
	    "abcdefghijklmnopqrstuvwxyz"
	    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	    "0123456789"
	    "._-/")
---- >8 -------- 
to have something like `com.example.myprog[1234]` as valid identity?