28 Jul, 2020

3 commits

  • Underscores were being used for emphasis, but these are rendered verbatim
    in HTML output. reStructuredText uses asterisks for emphasis. I *think* I
    caught all of them.

    Signed-off-by: Vegard Nossum
    Link: https://lore.kernel.org/r/20200727121525.28103-2-vegard.nossum@oracle.com
    Signed-off-by: Jonathan Corbet

    Vegard Nossum
     
  • "xxx``at``" makes the `` appear verbatim in the HTML output. I've opted
    for changing this into ``*at()`` to harmonise this with the use of * seen
    later in the same document (and add the parentheses to clarify that this
    is a system/function call).

    ``path_``* also makes `` appear in the HTML output, but we can fix it by
    moving the * into the ``. Also add the parantheses here.

    Signed-off-by: Vegard Nossum
    Link: https://lore.kernel.org/r/20200727121525.28103-1-vegard.nossum@oracle.com
    Signed-off-by: Jonathan Corbet

    Vegard Nossum
     
  • Two cases of ".

    I've verified that the HTML output is correct with this patch.

    Signed-off-by: Vegard Nossum
    Link: https://lore.kernel.org/r/20200727114527.23944-1-vegard.nossum@oracle.com
    Signed-off-by: Jonathan Corbet

    Vegard Nossum
     

06 Jul, 2020

1 commit


27 Jun, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Link: https://lore.kernel.org/r/20200621133552.46371-1-grandmaster@al2klimov.de
    Signed-off-by: Jonathan Corbet

    Alexander A. Klimov
     

14 Mar, 2020

1 commit

  • ->last_type values are set in 3 places: path_init() (sets to LAST_ROOT),
    link_path_walk (LAST_NORM/DOT/DOTDOT) and pick_link (LAST_BIND).

    The are checked in walk_component(), lookup_last() and do_last().
    They also get copied to the caller by filename_parentat(). In the last
    3 cases the value is what we had at the return from link_path_walk().
    In case of walk_component() it's either directly downstream from
    assignment in link_path_walk() or, when called by lookup_last(), the
    value we have at the return from link_path_walk().

    The value at the entry into link_path_walk() can survive to return only
    if the pathname contains nothing but slashes. Note that pick_link()
    never returns such - pure jumps are handled directly. So for the calls
    of link_path_walk() for trailing symlinks it does not matter what value
    had been there at the entry; the value at the return won't depend upon it.

    There are 3 call chains that might have pick_link() storing LAST_BIND:

    1) pick_link() from step_into() from walk_component() from
    link_path_walk(). In that case we will either be parsing the next
    component immediately after return into link_path_walk(), which will
    overwrite the ->last_type before anyone has a chance to look at it,
    or we'll fail, in which case nobody will be looking at ->last_type at all.

    2) pick_link() from step_into() from walk_component() from lookup_last().
    The value is never looked at due to the above; it won't affect the value
    seen at return from any link_path_walk().

    3) pick_link() from step_into() from do_last(). Ditto.

    In other words, assignemnt in pick_link() is pointless, and so is
    LAST_BIND itself; nothing ever looks at that value. Kill it off.
    And make link_path_walk() _always_ assign ->last_type - in the only
    case when the value at the entry might survive to the return that value
    is always LAST_ROOT, inherited from path_init(). Move that assignment
    from path_init() into the beginning of link_path_walk(), to consolidate
    the things.

    Historical note: LAST_BIND used to be used for the kludge with trailing
    pure jump symlinks (extra iteration through the top-level loop).
    No point keeping it anymore...

    Signed-off-by: Al Viro

    Al Viro
     

18 Jan, 2020

1 commit

  • Now that we have new LOOKUP flags, we should document them in the
    relevant path-walking documentation. And now that we've settled on a
    common name for nd_jump_link() style symlinks ("magic links"), use that
    term where magic-link semantics are described.

    Signed-off-by: Aleksa Sarai
    Signed-off-by: Al Viro

    Aleksa Sarai
     

07 Mar, 2019

1 commit

  • Documentation/filesystems is, like much of the rest of the kernel's
    documentation, a jumble of unorganized information. Split the
    documentation into categories and try to bring some order to the top-level
    index.rst files. No text changes other than a few section-introductory
    blurbs; this is all just moving stuff around.

    Cc: linux-fsdevel@vger.kernel.org
    Cc: Al Viro
    Signed-off-by: Jonathan Corbet

    Jonathan Corbet
     

08 Jan, 2019

1 commit


20 Dec, 2018

1 commit


07 Dec, 2018

1 commit

  • This allows the document to be integrated with the main documentation
    tree.
    Changes include:
    - rename from .md to .rst
    - use `` for code, not single `
    - use correct sub-section marking
    - fix indented blocks, both code and non-code
    - fix external-link markup

    Signed-off-by: NeilBrown
    [jc: changed the toctree organization a bit]
    Signed-off-by: Jonathan Corbet

    NeilBrown