Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Issue 3515012: opencryptoki: patch out the recursive chmod -R in pkcs_slot, and bump ebuild. (Closed)

Created:
10 years, 2 months ago by Nathan Williams
Modified:
9 years, 6 months ago
Reviewers:
rginda
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, tedbo, adlr, anush
Visibility:
Public.

Description

Patch out the recursive chmod -R in pkcs_slot, and bump ebuild. BUG=7289 TEST=Manual. Create /var/lib/opencryptoki/foo mode 644. Log out and log in and confirm that it is still mode 644. Change-Id: Iabb5996bccafcdc994429e18783a885000f49f13 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=be4f8ae

Patch Set 1 #

Patch Set 2 : Add umask #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, --1 lines) Patch
A dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch View 1 1 chunk +21 lines, -0 lines 0 comments Download
M dev-libs/opencryptoki/opencryptoki-2.2.8.ebuild View 1 chunk +1 line, -0 lines 0 comments Download
A + dev-libs/opencryptoki/opencryptoki-2.2.8-r6.ebuild View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nathan Williams
Let's give this another try.
10 years, 2 months ago (2010-10-05 18:15:28 UTC) #1
rginda
On 2010/10/05 18:15:28, Nathan Williams wrote: > Let's give this another try. I think the ...
10 years, 2 months ago (2010-10-05 20:13:53 UTC) #2
Nathan Williams
For the directories it's creating? What would you think about putting 'umask 002' at the ...
10 years, 2 months ago (2010-10-05 20:25:48 UTC) #3
rginda
On 2010/10/05 20:25:48, Nathan Williams wrote: > For the directories it's creating? What would you ...
10 years, 2 months ago (2010-10-05 20:45:11 UTC) #4
Nathan Williams
On 2010/10/05 20:45:11, rginda wrote: > Mm, good point, but will our script get the ...
10 years, 2 months ago (2010-10-05 21:17:57 UTC) #5
rginda
10 years, 2 months ago (2010-10-05 21:19:45 UTC) #6
Ok then, LGTM.  Thanks!

On 2010/10/05 21:17:57, Nathan Williams wrote:
> On 2010/10/05 20:45:11, rginda wrote:
> > Mm, good point, but will our script get the permissions right?
> 
> Our script runs with umask 022, so /var/lib/opencryptoki/tpm gets created mode
> 755, not 775. Of course, its only contents are symlinks to the user's home
> directory, which our script also created, so we don't need it to have group
> write permission.
> 
> I think 'umask 002' is the right upstreamable change to the pkcs_slot script,
> which avoids the business of chmod'ing random other files or directories. Any
> further bugs with the permissions of the directories in this area would belong
> to fix_pkcs11_token.sh, but it looks like we're currently OK.
> 
> PTAL.

Powered by Google App Engine
This is Rietveld 408576698