🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mailing.dragonflybsd.commits
Article #1

git: DragonFly_RELEASE_4_6 kernel - Fix kern.proc.pathname sysctl

#1
From: Matthew Dillon
Date: Fri, 05 Aug 2016 20:19
27 lines
1718 bytes
commit 61917905a465995a98722c4a543a07ec71aa7307
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Aug 5 13:12:08 2016 -0700

    kernel - Fix kern.proc.pathname sysctl
    
    * kern.proc.pathname is a sysctl used by programs to find the path
      of the running program.  This sysctl was created before we stored
      sufficient information in the proc structure to construct the
      correct path when multiple aliases are present (due to e.g. null-mounts)
      to the same file.
    
    * We do have this information, in p->p_textnch, so change the sysctl to
      use it.  The sysctl will now return the actual full path in the context
      of whomever ran the program, so it should properly take into account
      chroots and such.

Summary of changes:
 sys/kern/kern_proc.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/61917905a465995a98722c4a543a07ec71aa7307


-- 
DragonFly BSD source repository
Technical Details
Message-ID: <mailpost.1470428369.6867137.9591.mailing.dragonflybsd.commits@FreeBSD.cs.nctu.edu.tw>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <mailpost.1470428369.6867137.9591.mailing.dragonflybsd.commits@FreeBSD.cs.nctu.edu.tw>
Subject: git: DragonFly_RELEASE_4_6 kernel - Fix kern.proc.pathname sysctl
Date: Fri, 05 Aug 2016 20:19:26 +0000
From: dillon@crater.dragonflybsd.org (Matthew Dillon)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail
Newsgroups: mailing.dragonflybsd.commits
Organization: NCTU CS FreeBSD Server
Lines: 28
Sender: news@FreeBSD.cs.nctu.edu.tw
X-Received-Bytes: 1782
X-Received-Body-Crc: 1446440883