mirror of https://github.com/MISP/MISP
Merge remote-tracking branch 'origin/2.4' into develop
commit
e38eb54aa9
|
@ -2163,13 +2163,15 @@ installCoreRHEL () {
|
|||
# In case you get "internal compiler error: Killed (program cc1plus)"
|
||||
# You ran out of memory.
|
||||
# Create some swap
|
||||
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
|
||||
sudo mkswap /var/swap.img
|
||||
sudo swapon /var/swap.img
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
TEMP_SWAP=${TEMP_DIR}/swap.img
|
||||
sudo dd if=/dev/zero of=${TEMP_SWAP} bs=1024k count=4000
|
||||
sudo mkswap ${TEMP_SWAP}
|
||||
sudo swapon ${TEMP_SWAP}
|
||||
# And compile again
|
||||
$SUDO_WWW make -j3 pyLIEF
|
||||
sudo swapoff /var/swap.img
|
||||
sudo rm /var/swap.img
|
||||
${SUDO_WWW} make -j3 pyLIEF
|
||||
sudo swapoff ${TEMP_SWAP}
|
||||
sudo rm -r ${TEMP_DIR}
|
||||
fi
|
||||
|
||||
# The following adds a PYTHONPATH to where the pyLIEF module has been compiled
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; Generated by RHash v1.3.9 on 2021-02-15 at 12:01.57
|
||||
; Generated by RHash v1.4.0 on 2021-03-17 at 11:58.01
|
||||
; Written by Kravchenko Aleksey (Akademgorodok) - http://rhash.sf.net/
|
||||
;
|
||||
; 137749 12:01.57 2021-02-15 INSTALL.sh
|
||||
INSTALL.sh 5C4651E28DAD85AFCB59E6914D8ACAB6E447BEB7 506B3B399D5B8EC140538054D9E78ABFA11A8AD45CE5E42AC77A72FB71762FDE 400AFBF6ACA765F314F4D044ABC28D3D94E38D6223F642E1BED3F8C7884CAA64BAA10647352E5BF94411DA8A6753D549 3AC6B5A002645E7F29547F1134BE3C744BFD3D1B253473702B9132E7CEC271474333407F7AA375996EAF9A9877E8E73A7D3C655DDC6E9C7A83F5DF37FA418FB6
|
||||
; 137809 11:57.59 2021-03-17 INSTALL.sh
|
||||
INSTALL.sh 5264D3699A8122AD797C52D64DB3BDB59FF98B4E 072391BE950D876396C4C858515D429DCD5ECB1DDA6C52ABD8AC81FB1DA336C0 3BAA227161359FB6449FE7CCDAACF9985362DE128BC09296D6B543646DEA958611786F1B8F816AC11E0C9AAB15149D7E 5A1DF67A94B0F45967EA478EEB610AA33AAD1ABF2D4D27267AB8813C163683C98549071FE05275D5A99BCB08A5A6F703073563E46601E2727DE34ECFE57757D9
|
||||
|
|
|
@ -1 +1 @@
|
|||
5c4651e28dad85afcb59e6914d8acab6e447beb7 INSTALL.sh
|
||||
5264d3699a8122ad797c52d64db3bdb59ff98b4e INSTALL.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
506b3b399d5b8ec140538054d9e78abfa11a8ad45ce5e42ac77a72fb71762fde INSTALL.sh
|
||||
072391be950d876396c4c858515d429dcd5ecb1dda6c52abd8ac81fb1da336c0 INSTALL.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
400afbf6aca765f314f4d044abc28d3d94e38d6223f642e1bed3f8c7884caa64baa10647352e5bf94411da8a6753d549 INSTALL.sh
|
||||
3baa227161359fb6449fe7ccdaacf9985362de128bc09296d6b543646dea958611786f1b8f816ac11e0c9aab15149d7e INSTALL.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
3ac6b5a002645e7f29547f1134be3c744bfd3d1b253473702b9132e7cec271474333407f7aa375996eaf9a9877e8e73a7d3c655ddc6e9c7a83f5df37fa418fb6 INSTALL.sh
|
||||
5a1df67a94b0f45967ea478eeb610aa33aad1abf2d4d27267ab8813c163683c98549071fe05275d5a99bcb08a5a6f703073563e46601e2727de34ecfe57757d9 INSTALL.sh
|
||||
|
|
|
@ -4076,10 +4076,6 @@ class Attribute extends AppModel
|
|||
$attribute['distribution'] = 5;
|
||||
}
|
||||
}
|
||||
if (isset($attribute['Sighting']) && !empty($attribute['Sighting'])) {
|
||||
$this->Sighting = ClassRegistry::init('Sighting');
|
||||
$this->Sighting->captureSightings($attribute['Sighting'], $attribute['id'], $eventId, $user);
|
||||
}
|
||||
$fieldList = $this->editableFields;
|
||||
if (empty($existingAttribute)) {
|
||||
$addableFieldList = array('event_id', 'type', 'uuid');
|
||||
|
@ -4105,6 +4101,10 @@ class Attribute extends AppModel
|
|||
));
|
||||
return $this->validationErrors;
|
||||
} else {
|
||||
if (isset($attribute['Sighting']) && !empty($attribute['Sighting'])) {
|
||||
$this->Sighting = ClassRegistry::init('Sighting');
|
||||
$this->Sighting->captureSightings($attribute['Sighting'], $this->id, $eventId, $user);
|
||||
}
|
||||
if ($user['Role']['perm_tagger']) {
|
||||
/*
|
||||
We should uncomment the line below in the future once we have tag soft-delete
|
||||
|
|
|
@ -818,7 +818,7 @@ class GalaxyCluster extends AppModel
|
|||
{
|
||||
$this->Event = ClassRegistry::init('Event');
|
||||
if (isset($element[$model]['distribution']) && $element[$model]['distribution'] == 4) {
|
||||
$element[$model] = $this->Event->__captureSGForElement($element[$model], $user);
|
||||
$element[$model] = $this->Event->captureSGForElement($element[$model], $user);
|
||||
}
|
||||
// first we want to see how the creator organisation is encoded
|
||||
// The options here are either by passing an organisation object along or simply passing a string along
|
||||
|
|
|
@ -475,7 +475,7 @@ class GalaxyClusterRelation extends AppModel
|
|||
|
||||
$this->Event = ClassRegistry::init('Event');
|
||||
if (isset($relation['GalaxyClusterRelation']['distribution']) && $relation['GalaxyClusterRelation']['distribution'] == 4) {
|
||||
$relation['GalaxyClusterRelation'] = $this->Event->__captureSGForElement($relation['GalaxyClusterRelation'], $user);
|
||||
$relation['GalaxyClusterRelation'] = $this->Event->captureSGForElement($relation['GalaxyClusterRelation'], $user);
|
||||
}
|
||||
|
||||
$saveSuccess = $this->save($relation);
|
||||
|
|
|
@ -718,7 +718,7 @@
|
|||
"numeric_precision": null,
|
||||
"collation_name": "utf8mb4_unicode_ci",
|
||||
"column_type": "text",
|
||||
"column_default": "NULL",
|
||||
"column_default": null,
|
||||
"extra": ""
|
||||
}
|
||||
],
|
||||
|
|
|
@ -280,13 +280,15 @@ installCoreRHEL () {
|
|||
# In case you get "internal compiler error: Killed (program cc1plus)"
|
||||
# You ran out of memory.
|
||||
# Create some swap
|
||||
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
|
||||
sudo mkswap /var/swap.img
|
||||
sudo swapon /var/swap.img
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
TEMP_SWAP=${TEMP_DIR}/swap.img
|
||||
sudo dd if=/dev/zero of=${TEMP_SWAP} bs=1024k count=4000
|
||||
sudo mkswap ${TEMP_SWAP}
|
||||
sudo swapon ${TEMP_SWAP}
|
||||
# And compile again
|
||||
$SUDO_WWW make -j3 pyLIEF
|
||||
sudo swapoff /var/swap.img
|
||||
sudo rm /var/swap.img
|
||||
${SUDO_WWW} make -j3 pyLIEF
|
||||
sudo swapoff ${TEMP_SWAP}
|
||||
sudo rm -r ${TEMP_DIR}
|
||||
fi
|
||||
|
||||
# The following adds a PYTHONPATH to where the pyLIEF module has been compiled
|
||||
|
|
|
@ -255,13 +255,15 @@ installCoreRHEL () {
|
|||
# In case you get "internal compiler error: Killed (program cc1plus)"
|
||||
# You ran out of memory.
|
||||
# Create some swap
|
||||
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
|
||||
sudo mkswap /var/swap.img
|
||||
sudo swapon /var/swap.img
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
TEMP_SWAP=${TEMP_DIR}/swap.img
|
||||
sudo dd if=/dev/zero of=${TEMP_SWAP} bs=1024k count=4000
|
||||
sudo mkswap ${TEMP_SWAP}
|
||||
sudo swapon ${TEMP_SWAP}
|
||||
# And compile again
|
||||
$SUDO_WWW make -j3 pyLIEF
|
||||
sudo swapoff /var/swap.img
|
||||
sudo rm /var/swap.img
|
||||
${SUDO_WWW} make -j3 pyLIEF
|
||||
sudo swapoff ${TEMP_SWAP}
|
||||
sudo rm -r ${TEMP_DIR}
|
||||
fi
|
||||
|
||||
# The following adds a PYTHONPATH to where the pyLIEF module has been compiled
|
||||
|
|
Loading…
Reference in New Issue