https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238837

            Bug ID: 238837
           Summary: Remove P_SYSTEM flag from PID 1 to allow easier
                    debugging of init(8)
           Product: Base System
           Version: 11.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: msl0000023...@gmail.com

Created attachment 205367
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205367&action=edit
allow-ptrace-attach-1.diff

Currently ptrace(2) won't allow attaching to processes have P_SYSTEM flag set;
by removing this flag, debuggers like gdb(1) and lldb(1) will be able to debug
the current running init(8) process like other userspace processes.
Like all programs, init(8) may need to be ptrace(2)-attached, due to bugs or
testing new changes; generally, allowing that would be very convenient when
working with init(8)-related debuggings.

Although I currently didn't have a need to debug the FreeBSD init(8), this
report was a generic idea open for discuss.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to