Compare commits
No commits in common. "714fdbad84f4fe70f56c77c3d3677fae1cc94303" and "78d411cb9762c6775fca3e1975b333f8b72b182f" have entirely different histories.
714fdbad84
...
78d411cb97
|
@ -541,18 +541,6 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pn*[sS][pP][eE][cC][tT][rR][eE]*x360Convert
|
|||
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPSpectrex360Convertible13*:pvr*
|
||||
KEYBOARD_KEY_82=f20 # Fn+F12; Microphone mute button, should be micmute
|
||||
|
||||
# HP Elite x2 1013 G3
|
||||
evdev:atkbd:dmi:bvn*:bvr*:svnHP*:pnHPElitex21013G3:*
|
||||
KEYBOARD_KEY_f8=unknown # rfkill is also reported by HP Wireless hotkeys
|
||||
KEYBOARD_KEY_64=calendar
|
||||
KEYBOARD_KEY_81=f20 # Microphone mute button
|
||||
KEYBOARD_KEY_ee=switchvideomode # Switch display outputs
|
||||
KEYBOARD_KEY_92=brightnessdown
|
||||
KEYBOARD_KEY_97=brightnessup
|
||||
|
||||
evdev:name:Intel HID events:dmi:bvn*:bvr*:svnHP*:pnHPElitex21013G3:*
|
||||
KEYBOARD_KEY_08=unknown # rfkill is also reported by HP Wireless hotkeys
|
||||
|
||||
# Elitebook
|
||||
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*Compaq*:pvr*
|
||||
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*EliteBook*:pvr*
|
||||
|
|
|
@ -397,10 +397,6 @@ sensor:modalias:acpi:BMA250*:dmi:*:bvritWORKS.G.WI71C.JGBMRB*:*:svnInsyde:pni71c
|
|||
sensor:modalias:acpi:BOSC0200*:dmi:*:svnIRBIS:pnTW90:*
|
||||
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
|
||||
|
||||
# NB111
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*svn*IRBIS*:*pn*NB111*
|
||||
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
|
||||
|
||||
#TW118
|
||||
sensor:modalias:acpi:BOSC0200*:dmi:*:svnIRBIS:pnTW118:*
|
||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||
|
|
|
@ -885,7 +885,6 @@ libcrypt = cc.find_library('crypt')
|
|||
crypt_header = conf.get('HAVE_CRYPT_H') == 1 ? '''#include <crypt.h>''' : '''#include <unistd.h>'''
|
||||
foreach ident : [
|
||||
['crypt_ra', crypt_header],
|
||||
['crypt_preferred_method', crypt_header],
|
||||
['crypt_gensalt_ra', crypt_header]]
|
||||
|
||||
have = cc.has_function(ident[0], prefix : ident[1], args : '-D_GNU_SOURCE',
|
||||
|
|
|
@ -2868,6 +2868,7 @@ finish:
|
|||
m = manager_free(m);
|
||||
}
|
||||
|
||||
reset_arguments();
|
||||
mac_selinux_finish();
|
||||
|
||||
if (reexecute)
|
||||
|
@ -2894,7 +2895,6 @@ finish:
|
|||
* in become_shutdown() so normally we cannot free them yet. */
|
||||
watchdog_free_device();
|
||||
arg_watchdog_device = mfree(arg_watchdog_device);
|
||||
reset_arguments();
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
@ -2920,6 +2920,5 @@ finish:
|
|||
freeze_or_exit_or_reboot();
|
||||
}
|
||||
|
||||
reset_arguments();
|
||||
return retval;
|
||||
}
|
||||
|
|
|
@ -2114,9 +2114,25 @@ static int make_tmp_prefix(const char *prefix) {
|
|||
|
||||
}
|
||||
|
||||
static int make_tmp_subdir(const char *parent, char **ret) {
|
||||
_cleanup_free_ char *y = NULL;
|
||||
|
||||
y = path_join(parent, "/tmp");
|
||||
if (!y)
|
||||
return -ENOMEM;
|
||||
|
||||
RUN_WITH_UMASK(0000) {
|
||||
if (mkdir(y, 0777 | S_ISVTX) < 0)
|
||||
return -errno;
|
||||
}
|
||||
|
||||
if (ret)
|
||||
*ret = TAKE_PTR(y);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int setup_one_tmp_dir(const char *id, const char *prefix, char **path, char **tmp_path) {
|
||||
_cleanup_free_ char *x = NULL;
|
||||
_cleanup_free_ char *y = NULL;
|
||||
char bid[SD_ID128_STRING_MAX];
|
||||
sd_id128_t boot_id;
|
||||
bool rw = true;
|
||||
|
@ -2150,21 +2166,9 @@ static int setup_one_tmp_dir(const char *id, const char *prefix, char **path, ch
|
|||
}
|
||||
|
||||
if (rw) {
|
||||
y = strjoin(x, "/tmp");
|
||||
if (!y)
|
||||
return -ENOMEM;
|
||||
|
||||
RUN_WITH_UMASK(0000) {
|
||||
if (mkdir(y, 0777 | S_ISVTX) < 0)
|
||||
return -errno;
|
||||
}
|
||||
|
||||
r = label_fix_container(y, prefix, 0);
|
||||
r = make_tmp_subdir(x, tmp_path);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (tmp_path)
|
||||
*tmp_path = TAKE_PTR(y);
|
||||
} else {
|
||||
/* Trouble: we failed to create the directory. Instead of failing, let's simulate /tmp being
|
||||
* read-only. This way the service will get the EROFS result as if it was writing to the real
|
||||
|
|
|
@ -58,6 +58,9 @@ typedef struct RequestMeta {
|
|||
|
||||
bool follow;
|
||||
bool discrete;
|
||||
|
||||
uint64_t n_fields;
|
||||
bool n_fields_set;
|
||||
} RequestMeta;
|
||||
|
||||
static const char* const mime_types[_OUTPUT_MODE_MAX] = {
|
||||
|
@ -551,6 +554,10 @@ static ssize_t request_reader_fields(
|
|||
/* End of this field, so let's serialize the next
|
||||
* one */
|
||||
|
||||
if (m->n_fields_set &&
|
||||
m->n_fields <= 0)
|
||||
return MHD_CONTENT_READER_END_OF_STREAM;
|
||||
|
||||
r = sd_journal_enumerate_unique(m->journal, &d, &l);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to advance field index: %m");
|
||||
|
@ -561,6 +568,9 @@ static ssize_t request_reader_fields(
|
|||
pos -= m->size;
|
||||
m->delta += m->size;
|
||||
|
||||
if (m->n_fields_set)
|
||||
m->n_fields -= 1;
|
||||
|
||||
r = request_meta_ensure_tmp(m);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to create temporary file: %m");
|
||||
|
|
|
@ -40,11 +40,7 @@ int make_salt(char **ret) {
|
|||
|
||||
e = secure_getenv("SYSTEMD_CRYPT_PREFIX");
|
||||
if (!e)
|
||||
#if HAVE_CRYPT_PREFERRED_METHOD
|
||||
e = crypt_preferred_method();
|
||||
#else
|
||||
e = "$6$";
|
||||
#endif
|
||||
|
||||
log_debug("Generating salt for hash prefix: %s", e);
|
||||
|
||||
|
|
Loading…
Reference in New Issue