Bug 228671 - capsicum / COMPAT_FREEBSD32 regression
Summary: capsicum / COMPAT_FREEBSD32 regression
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Mariusz Zaborski
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-06-02 08:13 UTC by Antoine Brodin
Modified: 2018-09-17 18:47 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer freebsd_triage 2018-06-02 08:13:54 UTC
How to reproduce:

- head amd64 host
- head i386 jail
- pkg install binutils inside the head i386 jail

There are lots of:

indexinfo: Impossible to open directory: Not permitted in capability mode
pkg-static: POST-INSTALL script failed
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2018-06-02 08:27:59 UTC
The source code of print/indexinfo is readable at https://github.com/bapt/indexinfo/blob/master/indexinfo.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-07-03 18:18:23 UTC
A commit references this bug:

Author: oshogbo
Date: Tue Jul  3 18:17:19 UTC 2018
New revision: 335900
URL: https://svnweb.freebsd.org/changeset/base/335900

Log:
  capsicum: add getdirentries to the freebsd32 compact

  There is a getdirentries syscall in freebsd32 and it's
  capability ready so allow calling it in the capability mode.

  PR:		228671

Changes:
  head/sys/compat/freebsd32/capabilities.conf
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-07-03 18:19:26 UTC
A commit references this bug:

Author: oshogbo
Date: Tue Jul  3 18:18:30 UTC 2018
New revision: 335901
URL: https://svnweb.freebsd.org/changeset/base/335901

Log:
  Regen after 335900.

  PR:		228671

Changes:
  head/sys/compat/freebsd32/freebsd32_sysent.c
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-09-17 18:36:55 UTC
A commit references this bug:

Author: emaste
Date: Mon Sep 17 18:36:29 UTC 2018
New revision: 338726
URL: https://svnweb.freebsd.org/changeset/base/338726

Log:
  MFC r335900 (oshogbo): capsicum: add getdirentries to the freebsd32 compact

  There is a getdirentries syscall in freebsd32 and it's
  capability ready so allow calling it in the capability mode.

  PR:		228671

Changes:
_U  stable/11/
  stable/11/sys/compat/freebsd32/capabilities.conf
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-09-17 18:47:06 UTC
A commit references this bug:

Author: emaste
Date: Mon Sep 17 18:46:30 UTC 2018
New revision: 338728
URL: https://svnweb.freebsd.org/changeset/base/338728

Log:
  revert r338726 (getdirentries capsicum addition)

  Compat getdirentries was added with the ino64 project and is not needed
  in stable/11.  I MFC'd r335900 accidentally as a side effect of some
  other WIP.

  PR:		228671

Changes:
_U  stable/11/
  stable/11/sys/compat/freebsd32/capabilities.conf