All of lore.kernel.org
 help / color / mirror / Atom feed
* converting Documentation/security/* to .rst
@ 2017-04-28 20:24 Kees Cook
  2017-05-01 15:11 ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Kees Cook @ 2017-04-28 20:24 UTC (permalink / raw)
  To: linux-security-module

Hi,

I was curious if the conversion of security/ (and prctl/ which only
has two files that should probably both be moved to security/) was
already on someone's TODO list? I'd love to get these done (I refer
people regularly to seccomp_filter.txt and self-protection.txt), but I
didn't want to duplicate any efforts.

I read about various tools to help with auto-converting files to kind
of help speed up the process, but I couldn't find what seemed a
canonical answer to what to use as a helper. Is there one? (Perhaps
this was only for DocBook?)

Thanks!

-Kees

-- 
Kees Cook
Pixel Security
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* converting Documentation/security/* to .rst
  2017-04-28 20:24 converting Documentation/security/* to .rst Kees Cook
@ 2017-05-01 15:11 ` Jonathan Corbet
  2017-05-01 16:31   ` Kees Cook
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2017-05-01 15:11 UTC (permalink / raw)
  To: linux-security-module

On Fri, 28 Apr 2017 13:24:36 -0700
Kees Cook <keescook@google.com> wrote:

> I was curious if the conversion of security/ (and prctl/ which only
> has two files that should probably both be moved to security/) was
> already on someone's TODO list? I'd love to get these done (I refer
> people regularly to seccomp_filter.txt and self-protection.txt), but I
> didn't want to duplicate any efforts.

If anybody is working in that area, they've not told me about it.

> I read about various tools to help with auto-converting files to kind
> of help speed up the process, but I couldn't find what seemed a
> canonical answer to what to use as a helper. Is there one? (Perhaps
> this was only for DocBook?)

The tools, such as they are, are for the conversion of DocBook template
files.  Most of the kernel's .txt files are already in something quite
close to RST already, so the conversion is trivial.

The real question would be one of organization.  Most of the security
stuff looks like it properly belongs in the admin guide, but that's not
universally the case.

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* converting Documentation/security/* to .rst
  2017-05-01 15:11 ` Jonathan Corbet
@ 2017-05-01 16:31   ` Kees Cook
  2017-05-03 21:42     ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Kees Cook @ 2017-05-01 16:31 UTC (permalink / raw)
  To: linux-security-module

On Mon, May 1, 2017 at 8:11 AM, Jonathan Corbet <corbet@lwn.net> wrote:
> On Fri, 28 Apr 2017 13:24:36 -0700
> Kees Cook <keescook@google.com> wrote:
>
>> I was curious if the conversion of security/ (and prctl/ which only
>> has two files that should probably both be moved to security/) was
>> already on someone's TODO list? I'd love to get these done (I refer
>> people regularly to seccomp_filter.txt and self-protection.txt), but I
>> didn't want to duplicate any efforts.
>
> If anybody is working in that area, they've not told me about it.

I might take a shot at this, time permitting.

>> I read about various tools to help with auto-converting files to kind
>> of help speed up the process, but I couldn't find what seemed a
>> canonical answer to what to use as a helper. Is there one? (Perhaps
>> this was only for DocBook?)
>
> The tools, such as they are, are for the conversion of DocBook template
> files.  Most of the kernel's .txt files are already in something quite
> close to RST already, so the conversion is trivial.
>
> The real question would be one of organization.  Most of the security
> stuff looks like it properly belongs in the admin guide, but that's not
> universally the case.

Are the index area "purposes" documented anywhere? The admin guide
seems to cover things outside of "administration" (like reporting
security bugs, which is a developer/researcher activity usually),
There's already a top-level "security documentation" with some TPM
stuff in it.

Both things in prctl/ are "here's what this feature is and how to use
it", both exposed to userspace. In security/ there is a mix of LSM
highlevel descriptions and basic usage, key API documentation, and the
one sort of design goal document ("self-protection.txt").

I think it'd make sense to keep Security Documentation as a top-level
index for now, and create LSM and keys subsections for those items,
and then move prctl/* under security:

         deleted:    Documentation/security/00-INDEX
         deleted:    Documentation/security/conf.py
       renamed:    Documentation/security/IMA-templates.txt ->
Documentation/security/IMA-templates.rst
        renamed:    Documentation/security/credentials.txt ->
Documentation/security/credentials.rst
        renamed:    Documentation/security/keys-ecryptfs.txt ->
Documentation/security/keys/ecryptfs.rst
        renamed:    Documentation/security/keys.txt ->
Documentation/security/keys/index.rst
        renamed:    Documentation/security/keys-request-key.txt ->
Documentation/security/keys/request-key.rst
        renamed:    Documentation/security/keys-trusted-encrypted.txt
-> Documentation/security/keys/trusted-encrypted.rst
        renamed:    Documentation/security/LoadPin.txt ->
Documentation/security/lsm/LoadPin.rst
        renamed:    Documentation/security/SELinux.txt ->
Documentation/security/lsm/SELinux.rst
        renamed:    Documentation/security/Smack.txt ->
Documentation/security/lsm/Smack.rst
        renamed:    Documentation/security/Yama.txt ->
Documentation/security/lsm/Yama.rst
        renamed:    Documentation/security/apparmor.txt ->
Documentation/security/lsm/apparmor.rst
        renamed:    Documentation/security/LSM.txt ->
Documentation/security/lsm/index.rst
        renamed:    Documentation/security/tomoyo.txt ->
Documentation/security/lsm/tomoyo.rst
        renamed:    Documentation/prctl/no_new_privs.txt ->
Documentation/security/no_new_privs.rst
        renamed:    Documentation/prctl/seccomp_filter.txt ->
Documentation/security/seccomp_filter.rst
        renamed:    Documentation/security/self-protection.txt ->
Documentation/security/self-protection.rst
        modified:   Documentation/security/index.rst

This is just renames and an update to security/index.rst to include
the two new subdirs. This doesn't have any formatting updates. (What
is preferred, organizational changes first or .rst formatting first?)

Does this looks sensible?

What do LSM authors think of this? (e.g. various questions: should
LSM.txt become lsm/index.rst and keys.txt become keys/index.rst? Maybe
key "LSM" case for the new subdirectory? Should IMA be under LSM?)

Thanks!

-Kees

-- 
Kees Cook
Pixel Security
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* converting Documentation/security/* to .rst
  2017-05-01 16:31   ` Kees Cook
@ 2017-05-03 21:42     ` Jonathan Corbet
  2017-05-05 21:54       ` Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2017-05-03 21:42 UTC (permalink / raw)
  To: linux-security-module

On Mon, 1 May 2017 09:31:55 -0700
Kees Cook <keescook@google.com> wrote:

> > The real question would be one of organization.  Most of the security
> > stuff looks like it properly belongs in the admin guide, but that's not
> > universally the case.  
> 
> Are the index area "purposes" documented anywhere? The admin guide
> seems to cover things outside of "administration" (like reporting
> security bugs, which is a developer/researcher activity usually),
> There's already a top-level "security documentation" with some TPM
> stuff in it.

They aren't really documented beyond what they, themselves, contain.  What
you're seeing is the beginning of an effort to bring some order to the
Documentation/ mess.  One of the biggest problems, IMO, is the lack of any
sort of audience targeting.  We have lots of different kinds of people
reading (we hope!) the docs, and they have to wade through a lot of
irrelevant stuff.

So we've set up guides for administrators, for kernel developers, and for
user-space developers (the last just landing in 4.12).  There will never be
a perfect spot for every document, but I hope we can create something
that's more useful in the end.
 
> Both things in prctl/ are "here's what this feature is and how to use
> it", both exposed to userspace.

That really seems like user-space API stuff.  prctl() goes beyond security,
after all.

> In security/ there is a mix of LSM
> highlevel descriptions and basic usage, key API documentation, and the
> one sort of design goal document ("self-protection.txt").
> 
> I think it'd make sense to keep Security Documentation as a top-level
> index for now, and create LSM and keys subsections for those items,
> and then move prctl/* under security:

Sigh.  Everybody wants to keep their stuff at the top level, which is how
we have a Documentation/ directory with 300 items in it.

I would rather not see it done that way; I would rather organize our docs
for the readers than for the convenience of the maintainers.  That said, if
you're working to improve the docs, I think it would be pretty dumb to turn
the results away because I don't like the organization.  So I'll not do
that.  But I do reserve the right to propose reorganizing things in the
future :)

>          deleted:    Documentation/security/00-INDEX
>          deleted:    Documentation/security/conf.py
>        renamed:    Documentation/security/IMA-templates.txt ->
> Documentation/security/IMA-templates.rst
>         renamed:    Documentation/security/credentials.txt ->
> Documentation/security/credentials.rst
>         renamed:    Documentation/security/keys-ecryptfs.txt ->
> Documentation/security/keys/ecryptfs.rst
>         renamed:    Documentation/security/keys.txt ->
> Documentation/security/keys/index.rst
>         renamed:    Documentation/security/keys-request-key.txt ->
> Documentation/security/keys/request-key.rst
>         renamed:    Documentation/security/keys-trusted-encrypted.txt
> -> Documentation/security/keys/trusted-encrypted.rst  
>         renamed:    Documentation/security/LoadPin.txt ->
> Documentation/security/lsm/LoadPin.rst
>         renamed:    Documentation/security/SELinux.txt ->
> Documentation/security/lsm/SELinux.rst
>         renamed:    Documentation/security/Smack.txt ->
> Documentation/security/lsm/Smack.rst
>         renamed:    Documentation/security/Yama.txt ->
> Documentation/security/lsm/Yama.rst
>         renamed:    Documentation/security/apparmor.txt ->
> Documentation/security/lsm/apparmor.rst
>         renamed:    Documentation/security/LSM.txt ->
> Documentation/security/lsm/index.rst
>         renamed:    Documentation/security/tomoyo.txt ->
> Documentation/security/lsm/tomoyo.rst
>         renamed:    Documentation/prctl/no_new_privs.txt ->
> Documentation/security/no_new_privs.rst
>         renamed:    Documentation/prctl/seccomp_filter.txt ->
> Documentation/security/seccomp_filter.rst
>         renamed:    Documentation/security/self-protection.txt ->
> Documentation/security/self-protection.rst
>         modified:   Documentation/security/index.rst
> 
> This is just renames and an update to security/index.rst to include
> the two new subdirs. This doesn't have any formatting updates. (What
> is preferred, organizational changes first or .rst formatting first?)

Ordering doesn't matter much, though hooking things into the documentation
tree is usually easier if it's done after things are in the intended
location.

> Does this looks sensible?

Module what I said above, yes.

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* converting Documentation/security/* to .rst
  2017-05-03 21:42     ` Jonathan Corbet
@ 2017-05-05 21:54       ` Daniel Vetter
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Vetter @ 2017-05-05 21:54 UTC (permalink / raw)
  To: linux-security-module

On Wed, May 3, 2017 at 11:42 PM, Jonathan Corbet <corbet@lwn.net> wrote:
> On Mon, 1 May 2017 09:31:55 -0700
> Kees Cook <keescook@google.com> wrote:
>
>> > The real question would be one of organization.  Most of the security
>> > stuff looks like it properly belongs in the admin guide, but that's not
>> > universally the case.
>>
>> Are the index area "purposes" documented anywhere? The admin guide
>> seems to cover things outside of "administration" (like reporting
>> security bugs, which is a developer/researcher activity usually),
>> There's already a top-level "security documentation" with some TPM
>> stuff in it.
>
> They aren't really documented beyond what they, themselves, contain.  What
> you're seeing is the beginning of an effort to bring some order to the
> Documentation/ mess.  One of the biggest problems, IMO, is the lack of any
> sort of audience targeting.  We have lots of different kinds of people
> reading (we hope!) the docs, and they have to wade through a lot of
> irrelevant stuff.
>
> So we've set up guides for administrators, for kernel developers, and for
> user-space developers (the last just landing in 4.12).  There will never be
> a perfect spot for every document, but I hope we can create something
> that's more useful in the end.

Uuuhh... we might have torpedoed your efforts already in
Documenation/gpu/ Almost everything in there is for kernel developers
(gpu driver developers specifically), except we started to document
certain quirks and issues about the drm uapi in
Documentation/gpu/drm-uapi.rst. Much of that is again aimed at driver
developers (they need to implement the semantics correctly after all),
but it's also useful for userspace developers. And it might grow in
the future to include more.

How should we organize this? I admit that I'd like to keep it in
Documentation/gpu/ (because it is primarily aimed at kernel devs), but
at least linking it somewhere else might be useful?
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-05 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 20:24 converting Documentation/security/* to .rst Kees Cook
2017-05-01 15:11 ` Jonathan Corbet
2017-05-01 16:31   ` Kees Cook
2017-05-03 21:42     ` Jonathan Corbet
2017-05-05 21:54       ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.