/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to dracut-module/password-agent.c

  • Committer: teddy at recompile
  • Date: 2020-11-29 21:54:00 UTC
  • Revision ID: teddy@recompile.se-20201129215400-1zkzmiadisa8whx2
Change URL of systemd "Password Agents" specification

The URL of the systemd "Password Agents" specification changed from
<https://www.freedesktop.org/wiki/Software/systemd/PasswordAgents> to
<https://systemd.io/PASSWORD_AGENTS/>.

* dracut-module/password-agent.c: Change URL in code comments.
* dracut-module/password-agent.xml: Change URL.
* intro.xml (SYSTEMD): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Mandos password agent - Simple password agent to run Mandos client
4
4
 *
5
 
 * Copyright © 2019 Teddy Hogeborn
6
 
 * Copyright © 2019 Björn Påhlsson
 
5
 * Copyright © 2019-2020 Teddy Hogeborn
 
6
 * Copyright © 2019-2020 Björn Påhlsson
7
7
 * 
8
8
 * This file is part of Mandos.
9
9
 * 
868
868
  }
869
869
  close(pipefds[1]);
870
870
 
 
871
  if(pid == -1){
 
872
    error(0, errno, "Failed to fork()");
 
873
    close(pipefds[0]);
 
874
    return false;
 
875
  }
 
876
 
871
877
  if(not add_to_queue(queue, (task_context){
872
878
        .func=wait_for_mandos_client_exit,
873
879
        .pid=pid,
1187
1193
  bool *const password_is_read = task.password_is_read;
1188
1194
 
1189
1195
  /* We use the GLib "Key-value file parser" functions to parse the
1190
 
     question file.  See <https://www.freedesktop.org/wiki/Software
1191
 
     /systemd/PasswordAgents/> for specification of contents */
 
1196
     question file.  See <https://systemd.io/PASSWORD_AGENTS/> for
 
1197
     specification of contents */
1192
1198
  __attribute__((nonnull))
1193
1199
    void cleanup_g_key_file(GKeyFile **key_file){
1194
1200
    if(*key_file != NULL){
1484
1490
         not. You may but don't have to include a final NUL byte in
1485
1491
         your message.
1486
1492
 
1487
 
         — <https://www.freedesktop.org/wiki/Software/systemd/
1488
 
         PasswordAgents/> (Wed 08 Oct 2014 02:14:28 AM UTC)
 
1493
         — <https://systemd.io/PASSWORD_AGENTS/> (Tue, 15 Sep 2020
 
1494
         14:24:20 GMT)
1489
1495
      */
1490
1496
      send_buffer[0] = '+';     /* Prefix with "+" */
1491
1497
      /* Always add an extra NUL */
2190
2196
    }
2191
2197
    exit(EXIT_SUCCESS);
2192
2198
  }
 
2199
  if(pid == -1){
 
2200
    error(EXIT_FAILURE, errno, "Failed to fork()");
 
2201
  }
 
2202
 
2193
2203
  int status;
2194
2204
  waitpid(pid, &status, 0);
2195
2205
  if(WIFEXITED(status) and (WEXITSTATUS(status) == EXIT_SUCCESS)){
5948
5958
                                           test_fixture *fixture,
5949
5959
                                           __attribute__((unused))
5950
5960
                                           gconstpointer user_data){
 
5961
#ifndef __amd64__
 
5962
  g_test_skip("Skipping EMSGSIZE test on non-AMD64 platform");
 
5963
#else
5951
5964
  __attribute__((cleanup(cleanup_close)))
5952
5965
    const int epoll_fd = epoll_create1(EPOLL_CLOEXEC);
5953
5966
  g_assert_cmpint(epoll_fd, >=, 0);
6006
6019
  g_assert_cmpuint((unsigned int)queue->length, ==, 0);
6007
6020
  g_assert_true(string_set_contains(cancelled_filenames,
6008
6021
                                    question_filename));
 
6022
#endif
6009
6023
}
6010
6024
 
6011
6025
static void test_send_password_to_socket_retry(__attribute__((unused))