Page MenuHomeFreeBSD
Feed Advanced Search

May 25 2019

nsultana_seas.upenn.edu updated the diff for D20393: Adapting tail(1) to use Capsicum.

Using more idiomatic caph_limit_stderr(3) and caph_limit_stdout(3) in this instance instead of calls to caph_rights_limit(3).

May 25 2019, 8:59 PM · capsicum
oshogbo added inline comments to D20393: Adapting tail(1) to use Capsicum.
May 25 2019, 5:29 PM · capsicum
nsultana_seas.upenn.edu added inline comments to D20393: Adapting tail(1) to use Capsicum.
May 25 2019, 1:56 AM · capsicum
nsultana_seas.upenn.edu updated the diff for D20393: Adapting tail(1) to use Capsicum.

STDOUT_FILENO and STDERR_FILENO are given CAP_WRITE, and not given the extra capabilities needed by STDIN_FILENO and file arguments to tail(1).

May 25 2019, 1:56 AM · capsicum

May 24 2019

oshogbo requested changes to D20393: Adapting tail(1) to use Capsicum.
May 24 2019, 6:47 PM · capsicum
nsultana_seas.upenn.edu created D20393: Adapting tail(1) to use Capsicum.
May 24 2019, 1:15 AM · capsicum

Nov 13 2018

arichardson added a member for capsicum: arichardson.
Nov 13 2018, 9:40 AM

Oct 6 2018

emaste closed D17128: [sshd 7.8p1] avoid to violate capability mode.
Oct 6 2018, 9:33 PM · capsicum

Oct 5 2018

des accepted D17128: [sshd 7.8p1] avoid to violate capability mode.

I would strongly recommend submitting the sshbuf_{get,put,free}_passwd() part of this patch upstream.

Oct 5 2018, 2:18 PM · capsicum

Sep 13 2018

cem accepted D17128: [sshd 7.8p1] avoid to violate capability mode.

👍

Sep 13 2018, 1:39 AM · capsicum
naito.yuichiro_gmail.com updated the diff for D17128: [sshd 7.8p1] avoid to violate capability mode.

Fixed code style issues

Sep 13 2018, 1:37 AM · capsicum
naito.yuichiro_gmail.com added inline comments to D17128: [sshd 7.8p1] avoid to violate capability mode.
Sep 13 2018, 1:36 AM · capsicum

Sep 12 2018

cem accepted D17128: [sshd 7.8p1] avoid to violate capability mode.

Looks great to me.

Sep 12 2018, 2:49 PM · capsicum
naito.yuichiro_gmail.com added inline comments to D17128: [sshd 7.8p1] avoid to violate capability mode.
Sep 12 2018, 10:45 AM · capsicum
naito.yuichiro_gmail.com updated the diff for D17128: [sshd 7.8p1] avoid to violate capability mode.

Fixed commented issues.

Sep 12 2018, 10:43 AM · capsicum
naito.yuichiro_gmail.com added inline comments to D17128: [sshd 7.8p1] avoid to violate capability mode.
Sep 12 2018, 10:40 AM · capsicum
cem accepted D17128: [sshd 7.8p1] avoid to violate capability mode.

Functionality looks good to me. Some minor style suggestions follow.

Sep 12 2018, 4:09 AM · capsicum
naito.yuichiro_gmail.com added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

Created D17128 for OpenSSH-7.8p1.

Sep 12 2018, 3:55 AM · capsicum
naito.yuichiro_gmail.com created D17128: [sshd 7.8p1] avoid to violate capability mode.
Sep 12 2018, 3:54 AM · capsicum

Sep 11 2018

cem added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

I found one problem that sshd fails to reverse resolve hostname if server is set UseDNS yes .

Sep 11 2018, 3:14 PM · capsicum
naito.yuichiro_gmail.com added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

I see that r338561 commit updates openssh to 7.8p1.
I'm going to update my patch for this version and create a new differential.

Sep 11 2018, 10:04 AM · capsicum
naito.yuichiro_gmail.com updated the diff for D17056: [sshd] add wrapper function of login_getpwclass.

I found one problem that sshd fails to reverse resolve hostname if server is set UseDNS yes .

Sep 11 2018, 10:01 AM · capsicum

Sep 10 2018

cem accepted D17056: [sshd] add wrapper function of login_getpwclass.

Looks great to me, thanks. Any other reviewers want to take a pass?

Sep 10 2018, 3:46 PM · capsicum
naito.yuichiro_gmail.com updated the diff for D17056: [sshd] add wrapper function of login_getpwclass.

Fixed code style issues and log messages.
No functional change.

Sep 10 2018, 7:50 AM · capsicum
naito.yuichiro_gmail.com added inline comments to D17056: [sshd] add wrapper function of login_getpwclass.
Sep 10 2018, 5:33 AM · capsicum

Sep 8 2018

cem accepted D17056: [sshd] add wrapper function of login_getpwclass.

Looks great to me! All of my comments below are just style or message suggestions, nothing functional.

Sep 8 2018, 1:38 AM · capsicum

Sep 7 2018

naito.yuichiro_gmail.com added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

How do we coordinate with upstream on this?

Sep 7 2018, 8:33 AM · capsicum
naito.yuichiro_gmail.com updated the diff for D17056: [sshd] add wrapper function of login_getpwclass.

Fixed commented issues.
If you try this code, please be aware that you need to update libprivatessh.so.
Because I fixed buffer.c to implement functions for operating struct passwd.
Buffer related functions are written in 'buffer.c'.

Sep 7 2018, 8:31 AM · capsicum
naito.yuichiro_gmail.com added inline comments to D17056: [sshd] add wrapper function of login_getpwclass.
Sep 7 2018, 5:44 AM · capsicum

Sep 6 2018

emaste added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

How do we coordinate with upstream on this?

Sep 6 2018, 9:08 PM · capsicum
cem requested changes to D17056: [sshd] add wrapper function of login_getpwclass.

Mostly looks good to me! I had a couple concerns and suggestions, see below. Thanks for the patch.

Sep 6 2018, 5:03 PM · capsicum
cem added a reviewer for D17056: [sshd] add wrapper function of login_getpwclass: des.

Hi Conrad.
Thanks for the advice. I regenerated patch file. It seems good differential.

Sep 6 2018, 4:38 PM · capsicum
naito.yuichiro_gmail.com updated the diff for D17056: [sshd] add wrapper function of login_getpwclass.

regenerate patch by `diff -U9999```

Sep 6 2018, 12:25 PM · capsicum
naito.yuichiro_gmail.com added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

Hi Conrad.
Thanks for the advice. I regenerated patch file. It seems good differential.

Sep 6 2018, 12:25 PM · capsicum
naito.yuichiro_gmail.com created D17056: [sshd] add wrapper function of login_getpwclass.
Sep 6 2018, 12:25 PM · capsicum
cem added a comment to D17056: [sshd] add wrapper function of login_getpwclass.

Hi Yuichiro NAITO,

Sep 6 2018, 12:25 PM · capsicum
naito.yuichiro_gmail.com updated the test plan for D17056: [sshd] add wrapper function of login_getpwclass.
Sep 6 2018, 12:25 PM · capsicum
naito.yuichiro_gmail.com updated the test plan for D17056: [sshd] add wrapper function of login_getpwclass.
Sep 6 2018, 12:24 PM · capsicum

May 17 2018

oshogbo requested changes to D15289: sandbox jls(8).
May 17 2018, 10:01 AM · capsicum

May 16 2018

sg2342_googlemail.com added inline comments to D15289: sandbox jls(8).
May 16 2018, 2:17 AM · capsicum
sg2342_googlemail.com added inline comments to D15289: sandbox jls(8).
May 16 2018, 1:56 AM · capsicum

May 12 2018

sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).

fix RESCUE: include lib/libjail/jail.c in librescue if necessary

May 12 2018, 12:57 AM · capsicum

May 11 2018

sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).

cap_jail.c: improve allocation and error handling in service command

May 11 2018, 3:14 PM · capsicum
sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).

cap_sysctl.c: resolve names to mibs when limits are set.

May 11 2018, 3:36 AM · capsicum
sg2342_googlemail.com added inline comments to D15289: sandbox jls(8).
May 11 2018, 2:12 AM · capsicum
sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).
  • rename cap_jail_get -> cap_jail and system.cap_jail_get -> system.cap_jail
  • cap_jail:
    • fix copyright
    • add man page
  • cap_jail.c:
    • style(9) changes
    • use dnvlist_* in service command
    • split nvlist -> iov function in two: nvl_to_iov_s is used by the service and makes sure there is space before memcpy
  • jls.c: use caph_enter_casper
  • cap_sysctl.c: style
  • cap_sysclt.3: reference sysctl(3)
May 11 2018, 1:30 AM · capsicum

May 10 2018

oshogbo added a comment to D15289: sandbox jls(8).

WOW! Thank you for working on that!

May 10 2018, 7:25 AM · capsicum
sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).

I removed to kernel changes and used libcasper to obtain sysctl and jail_get functionality needed for jls(1).

May 10 2018, 2:13 AM · capsicum

May 5 2018

oshogbo requested changes to D15289: sandbox jls(8).

Please use libcasper(3) to obtain valid sysctl.

May 5 2018, 10:38 AM · capsicum

May 4 2018

sg2342_googlemail.com updated the diff for D15289: sandbox jls(8).

caph_cache_catpages(3) before cap_enter(2)

May 4 2018, 2:56 AM · capsicum
allanjude added a reviewer for D15289: sandbox jls(8): capsicum.
May 4 2018, 1:38 AM · capsicum
sg2342_googlemail.com created D15289: sandbox jls(8).
May 4 2018, 1:25 AM · capsicum

May 3 2018

sg2342_googlemail.com added a watcher for capsicum: sg2342_googlemail.com.
May 3 2018, 9:53 PM

Apr 30 2018

emaste closed D15221: Disable connectat/bindat with AT_FDCWD parameter in capabilities mode.
Apr 30 2018, 5:31 PM · capsicum
emaste added a comment to D15221: Disable connectat/bindat with AT_FDCWD parameter in capabilities mode.

connectat/bindat description updated in rS333119

Apr 30 2018, 5:16 PM · capsicum
domagoj.stolfa_gmail.com accepted D15221: Disable connectat/bindat with AT_FDCWD parameter in capabilities mode.

Had a quick skim, but LGTM.

Apr 30 2018, 4:05 PM · capsicum

Apr 28 2018

emaste updated subscribers of D15221: Disable connectat/bindat with AT_FDCWD parameter in capabilities mode.

Thank you, I will try to review soon and have added some other Capsicum folks.

Apr 28 2018, 12:40 PM · capsicum
jan.kokemueller_gmail.com created D15221: Disable connectat/bindat with AT_FDCWD parameter in capabilities mode.
Apr 28 2018, 6:09 AM · capsicum

Mar 17 2018

shubhg_iitk.ac.in added a watcher for capsicum: shubhg_iitk.ac.in.
Mar 17 2018, 2:54 PM

Oct 28 2017

oshogbo closed D8754: Convert ping to use libcaspermock when Casper is disabled..
Oct 28 2017, 7:39 PM · capsicum
oshogbo closed D8753: Introduce libcaspermock.
Oct 28 2017, 7:24 PM · capsicum

Oct 12 2017

bdrewery added a comment to D8753: Introduce libcaspermock.

From in-person working group session, a suggestion to rename libcasper.h to libcasper.h.in and run unifdef on it during install.

% cat example.h.in
// example header file
#ifdef WITH_CASPER
// casper version
#else
// non-casper version
#endif

% unifdef -UWITH_CASPER -o example.h example.h.in
% cat example.h                                  
// example header file
// non-casper version

% unifdef -DWITH_CASPER -o example.h example.h.in
% cat example.h                                  
// example header file
// casper version
Oct 12 2017, 8:13 PM · capsicum

Sep 22 2017

emaste added a comment to D8753: Introduce libcaspermock.

From in-person working group session, a suggestion to rename libcasper.h to libcasper.h.in and run unifdef on it during install.

Sep 22 2017, 1:15 PM · capsicum

Sep 21 2017

oshogbo updated the diff for D8753: Introduce libcaspermock.

As discussed with emaste@ I commited the changes regarding the stabilization of the ifdefs name in separate commit (r323866). This should make diff a little bit smaller.

Sep 21 2017, 2:44 PM · capsicum
ed accepted D8754: Convert ping to use libcaspermock when Casper is disabled..
Sep 21 2017, 2:08 PM · capsicum
ed accepted D8753: Introduce libcaspermock.
Sep 21 2017, 2:05 PM · capsicum
emaste accepted D8754: Convert ping to use libcaspermock when Casper is disabled..
Sep 21 2017, 1:43 PM · capsicum

Sep 17 2017

oshogbo added inline comments to D8753: Introduce libcaspermock.
Sep 17 2017, 10:14 AM · capsicum
oshogbo updated the diff for D8753: Introduce libcaspermock.
Sep 17 2017, 10:14 AM · capsicum

Aug 25 2017

emaste added inline comments to D8753: Introduce libcaspermock.
Aug 25 2017, 1:42 PM · capsicum

Aug 16 2017

oshogbo added inline comments to D8753: Introduce libcaspermock.
Aug 16 2017, 6:42 PM · capsicum
oshogbo updated the diff for D8753: Introduce libcaspermock.

Update with -U9999.

Aug 16 2017, 6:40 PM · capsicum

Aug 15 2017

cem accepted D8754: Convert ping to use libcaspermock when Casper is disabled..
Aug 15 2017, 6:21 PM · capsicum
cem added a comment to D8753: Introduce libcaspermock.

Would you please upload a diff with full context (-U9999)? Thanks.

Aug 15 2017, 6:17 PM · capsicum

Aug 10 2017

oshogbo updated the diff for D8754: Convert ping to use libcaspermock when Casper is disabled..

Update to new libcasper version.

Aug 10 2017, 5:42 PM · capsicum
oshogbo updated the diff for D8753: Introduce libcaspermock.

Hi Guys :)

Aug 10 2017, 5:41 PM · capsicum

Jul 8 2017

lwhsu added a watcher for capsicum: lwhsu.
Jul 8 2017, 11:11 PM

Feb 18 2017

bkidney_briankidney.ca added a watcher for capsicum: bkidney_briankidney.ca.
Feb 18 2017, 12:52 AM

Jan 20 2017

tommi.pernila_iki.fi added a watcher for capsicum: tommi.pernila_iki.fi.
Jan 20 2017, 12:08 PM

Dec 16 2016

ed added a comment to D8753: Introduce libcaspermock.

Maybe what I'm about to say is blasphemy in our circles, but it looks like this tries to solve a problem that an object oriented programming language with virtual functions (C++) could easily solve. libcasper's header file would provide declarations for abstract base classes for all sorts of handles. Then there are two implementations of these classes: one that acts as a no-op and one that is actually built on top of Capsicum. That way there is no need to resort to linker tricks.

Dec 16 2016, 9:27 PM · capsicum

Dec 15 2016

bapt added a comment to D8753: Introduce libcaspermock.

I don't really much like this approach, plus there is a high risk to have libcaspermock and libcasper out of sync

Dec 15 2016, 10:29 PM · capsicum

Dec 12 2016

robak closed D8543: Capsicumise dd by committing rS309921: Fix regression when stdin/out/err fds are are overridden by shell..
Dec 12 2016, 6:56 PM · capsicum
kib closed D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default. by committing rS309887: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal..
Dec 12 2016, 11:12 AM · capsicum
ngie accepted D8543: Capsicumise dd.

The changes proposed seem ok, in so long as it addresses the regression I reported on svn-src-all@.

Dec 12 2016, 9:18 AM · capsicum
ngie reopened D8543: Capsicumise dd.
Dec 12 2016, 9:17 AM · capsicum
robak added a comment to D8543: Capsicumise dd.

@ngie Thoughts? I'd like to commit this and move on to other things, so review/approval is highly appreciated.

Dec 12 2016, 9:06 AM · capsicum
cem added a comment to D8753: Introduce libcaspermock.

The only situation I can think of where you would like to have two libraries is when you would install something from ports which you don't want to use Casper and your base system is using Casper.

Dec 12 2016, 7:29 AM · capsicum
oshogbo added a comment to D8753: Introduce libcaspermock.

The behavior of few functions are a little bit different libcasper and libcaspermock but this still could be merged somehow.
The only situation I can think of where you would like to have two libraries is when you would install something from ports which you don't want to use Casper and your base system is using Casper.

Dec 12 2016, 7:20 AM · capsicum
cem added a comment to D8753: Introduce libcaspermock.

Why do we need a separate library for this? Why not just turn MK_CASPER=no into the equivalent of cap_enable() -> false?

Dec 12 2016, 2:35 AM · capsicum
cem added inline comments to D8754: Convert ping to use libcaspermock when Casper is disabled..
Dec 12 2016, 2:32 AM · capsicum

Dec 11 2016

oshogbo updated D8753: Introduce libcaspermock.
Dec 11 2016, 11:54 PM · capsicum
oshogbo added a comment to D8753: Introduce libcaspermock.

Example of usage: https://reviews.freebsd.org/D8754

Dec 11 2016, 11:53 PM · capsicum
oshogbo added a comment to D8754: Convert ping to use libcaspermock when Casper is disabled..
Dec 11 2016, 11:52 PM · capsicum
oshogbo retitled D8754: Convert ping to use libcaspermock when Casper is disabled. from to Convert ping to use libcaspermock when Casper is disabled..
Dec 11 2016, 11:52 PM · capsicum
oshogbo retitled D8753: Introduce libcaspermock from to Introduce libcaspermock.
Dec 11 2016, 11:50 PM · capsicum
cem accepted D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default..
Dec 11 2016, 6:38 PM · capsicum
kib added inline comments to D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default..
Dec 11 2016, 6:23 PM · capsicum
cem added a comment to D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default..
In D8746#181220, @cem wrote:

For local dotdot lookups in capsicum mode, I think it will be very easy to add some unit tests confirming correct behavior.

Dec 11 2016, 4:08 AM · capsicum
cem added a comment to D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default..

For local dotdot lookups in capsicum mode, I think it will be very easy to add some unit tests confirming correct behavior.

Dec 11 2016, 3:16 AM · capsicum

Dec 10 2016

cem added inline comments to D8746: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal by default..
Dec 10 2016, 10:08 PM · capsicum