<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/run-as/package.c, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Switch run-as to libpackagelistparser.</title>
<updated>2016-07-07T23:50:32+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2016-07-07T23:22:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=0c8bf5798f7beedcf7a1781501151d689b88fe98'/>
<id>0c8bf5798f7beedcf7a1781501151d689b88fe98</id>
<content type='text'>
We already have to have a Java and a native implementation; we don't
need _two_ native implementations.

Change-Id: I0201205ce5079ef9c747abc37b0c8122cf8fb136
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We already have to have a Java and a native implementation; we don't
need _two_ native implementations.

Change-Id: I0201205ce5079ef9c747abc37b0c8122cf8fb136
</pre>
</div>
</content>
</entry>
<entry>
<title>Extend run-as with optional --user argument.</title>
<updated>2015-06-10T19:09:10+00:00</updated>
<author>
<name>Oleksiy Vyalov</name>
<email>ovyalov@google.com</email>
</author>
<published>2015-06-03T23:56:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=a08d313bb87279d2a203cded92669638e3458f5f'/>
<id>a08d313bb87279d2a203cded92669638e3458f5f</id>
<content type='text'>
1. Calculate AID for spawned process as (100000 * $user) + uid_from_packages.list
2. Use /data/user/$user/$packageDir as a root of a new process if $user != 0.

Change-Id: I761dfb481114bd51e5a950307fcaf403e96eef10
(cherry picked from commit da31778f3b422d9583f334273eb8d9f6aabd5d34)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Calculate AID for spawned process as (100000 * $user) + uid_from_packages.list
2. Use /data/user/$user/$packageDir as a root of a new process if $user != 0.

Change-Id: I761dfb481114bd51e5a950307fcaf403e96eef10
(cherry picked from commit da31778f3b422d9583f334273eb8d9f6aabd5d34)
</pre>
</div>
</content>
</entry>
<entry>
<title>package missing include for string.h</title>
<updated>2015-04-01T18:15:37+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2015-04-01T14:42:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=68ffc74e32dba4799ac3249c6835ca1ef2fe5f04'/>
<id>68ffc74e32dba4799ac3249c6835ca1ef2fe5f04</id>
<content type='text'>
package.c gets string.h inherited from
private/android_filesystem_config.h it should
not rely on this in the future. The intent is
to move fs_config function into libcutils and
thus deprecate any need for string.h in this
include file.

Bug: 19908228
Change-Id: I5db6d0a88c5b1eb9f582284e9bdd220c096ea69a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
package.c gets string.h inherited from
private/android_filesystem_config.h it should
not rely on this in the future. The intent is
to move fs_config function into libcutils and
thus deprecate any need for string.h in this
include file.

Bug: 19908228
Change-Id: I5db6d0a88c5b1eb9f582284e9bdd220c096ea69a
</pre>
</div>
</content>
</entry>
<entry>
<title>run-as: build 1161573 failure</title>
<updated>2014-05-08T21:18:23+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2014-05-08T21:09:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2e6e2713fb71f7e18b782ac22a7b466545b79e89'/>
<id>2e6e2713fb71f7e18b782ac22a7b466545b79e89</id>
<content type='text'>
- pointer to integer comparison.

Change-Id: I4a12c357ff5eaf2fc08c19c9efe7e2d7cb0dbe2e</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- pointer to integer comparison.

Change-Id: I4a12c357ff5eaf2fc08c19c9efe7e2d7cb0dbe2e</pre>
</div>
</content>
</entry>
<entry>
<title>run-as: turn on -Werror</title>
<updated>2014-05-07T23:56:21+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2014-04-30T23:14:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=b9f5a2b9a0f4f08050dd2b88c64493836edc74dd'/>
<id>b9f5a2b9a0f4f08050dd2b88c64493836edc74dd</id>
<content type='text'>
- remove an abandoned code fragment

Change-Id: I32d4ad820772685c680d200dc00ef11d102c76bd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- remove an abandoned code fragment

Change-Id: I32d4ad820772685c680d200dc00ef11d102c76bd
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable run-as to read packages.list now owned by package_info.</title>
<updated>2013-08-20T22:16:31+00:00</updated>
<author>
<name>Alex Klyubin</name>
<email>klyubin@google.com</email>
</author>
<published>2013-08-20T22:16:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=18860c524915bc991a9015bdbab32e918f5298d7'/>
<id>18860c524915bc991a9015bdbab32e918f5298d7</id>
<content type='text'>
The group ownership of the package database
/data/system/packages.list read by run-as was changed in
977a9f3b1a05e6168e8245a1e2061225b68b2b41 from "system" to
"package_info". run-as currently changes its effective group to
"system" and is thus unable to read the database.

This CL fixes the issue by making run-as change its effective group
to "package_info" for reading the package database.

Bug: 10411916
Change-Id: Id23059bfb5b43264824917873a31c287f057ce4e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The group ownership of the package database
/data/system/packages.list read by run-as was changed in
977a9f3b1a05e6168e8245a1e2061225b68b2b41 from "system" to
"package_info". run-as currently changes its effective group to
"system" and is thus unable to read the database.

This CL fixes the issue by making run-as change its effective group
to "package_info" for reading the package database.

Bug: 10411916
Change-Id: Id23059bfb5b43264824917873a31c287f057ce4e
</pre>
</div>
</content>
</entry>
<entry>
<title>Add legacy layout support to FUSE, enforce write.</title>
<updated>2013-08-14T19:01:38+00:00</updated>
<author>
<name>Jeff Sharkey</name>
<email>jsharkey@android.com</email>
</author>
<published>2013-08-13T03:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=977a9f3b1a05e6168e8245a1e2061225b68b2b41'/>
<id>977a9f3b1a05e6168e8245a1e2061225b68b2b41</id>
<content type='text'>
The legacy internal layout places users at the top-level of the
filesystem, so handle with new PERM_LEGACY_PRE_ROOT when requested.

Mirror single OBB directory between all users without requiring fancy
bind mounts by letting a nodes graft in another part of the
underlying tree.

Move to everything having "sdcard_r" GID by default, and verify that
calling apps hold "sdcard_rw" when performing mutations. Determines
app group membership from new packages.list column.

Flag to optionally enable sdcard_pics/sdcard_av permissions
splitting. Flag to supply a default GID for all files. Ignore
attempts to access security sensitive files. Fix run-as to check for
new "package_info" GID.

Change-Id: Id5f3680779109141c65fb8fa1daf56597f49ea0d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The legacy internal layout places users at the top-level of the
filesystem, so handle with new PERM_LEGACY_PRE_ROOT when requested.

Mirror single OBB directory between all users without requiring fancy
bind mounts by letting a nodes graft in another part of the
underlying tree.

Move to everything having "sdcard_r" GID by default, and verify that
calling apps hold "sdcard_rw" when performing mutations. Determines
app group membership from new packages.list column.

Flag to optionally enable sdcard_pics/sdcard_av permissions
splitting. Flag to supply a default GID for all files. Ignore
attempts to access security sensitive files. Fix run-as to check for
new "package_info" GID.

Change-Id: Id5f3680779109141c65fb8fa1daf56597f49ea0d
</pre>
</div>
</content>
</entry>
<entry>
<title>am f19e045c: am c8df252f: Merge "run-as: Get seinfo from packages.list and pass to libselinux."</title>
<updated>2013-03-28T21:32:49+00:00</updated>
<author>
<name>Geremy Condra</name>
<email>gcondra@google.com</email>
</author>
<published>2013-03-28T21:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=46e8991209508a9f5d59bf97ed39b791444dbaf7'/>
<id>46e8991209508a9f5d59bf97ed39b791444dbaf7</id>
<content type='text'>
* commit 'f19e045c58dafbdc46e848ec5a5c935f472dea34':
  run-as: Get seinfo from packages.list and pass to libselinux.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* commit 'f19e045c58dafbdc46e848ec5a5c935f472dea34':
  run-as: Get seinfo from packages.list and pass to libselinux.
</pre>
</div>
</content>
</entry>
<entry>
<title>run-as: Get seinfo from packages.list and pass to libselinux.</title>
<updated>2013-03-28T10:04:39+00:00</updated>
<author>
<name>Robert Craig</name>
<email>rpcraig@tycho.ncsc.mil</email>
</author>
<published>2013-03-26T12:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=fced3ded831cb084121b10a78c12de99c89004aa'/>
<id>fced3ded831cb084121b10a78c12de99c89004aa</id>
<content type='text'>
Change allows the proper seinfo value to be passed
to libselinux to switch to the proper app security
context before running the shell.

Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87
Signed-off-by: rpcraig &lt;rpcraig@tycho.ncsc.mil&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change allows the proper seinfo value to be passed
to libselinux to switch to the proper app security
context before running the shell.

Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87
Signed-off-by: rpcraig &lt;rpcraig@tycho.ncsc.mil&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: drop capability bounding set on user builds</title>
<updated>2013-02-16T05:22:19+00:00</updated>
<author>
<name>Nick Kralevich</name>
<email>nnk@google.com</email>
</author>
<published>2013-02-15T22:39:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=080427e4e2b1b72718b660e16b6cf38b3a3c4e3f'/>
<id>080427e4e2b1b72718b660e16b6cf38b3a3c4e3f</id>
<content type='text'>
run-as: don't require CAP_DAC_OVERRIDE.

Prevent an adb spawned application from acquiring capabilities
other than

* CAP_NET_RAW
* CAP_SETUID
* CAP_SETGID

The only privileged programs accessible on user builds are
* /system/bin/ping
* /system/bin/run-as

and the capabilities above are sufficient to cover those
two programs.

If the kernel doesn't support file capabilities, we ignore
a prctl(PR_CAPBSET_DROP) failure. In a future CL, this could
become a fatal error.

Change-Id: I45a56712bfda35b5ad9378dde9e04ab062fe691a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
run-as: don't require CAP_DAC_OVERRIDE.

Prevent an adb spawned application from acquiring capabilities
other than

* CAP_NET_RAW
* CAP_SETUID
* CAP_SETGID

The only privileged programs accessible on user builds are
* /system/bin/ping
* /system/bin/run-as

and the capabilities above are sufficient to cover those
two programs.

If the kernel doesn't support file capabilities, we ignore
a prctl(PR_CAPBSET_DROP) failure. In a future CL, this could
become a fatal error.

Change-Id: I45a56712bfda35b5ad9378dde9e04ab062fe691a
</pre>
</div>
</content>
</entry>
</feed>
