Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 4y ago · link · parent

Sadly, in Debian every package which gets installed, can run a script with root privileges so this is even more dangerous. Although most packages don't need such privileges.

comment 4y ago · link · parent

Regarding Crimea and Donbass, as far as I am aware there were no attempts to overthrow the government by local population before Russian military seized control of government buildings.

So the difference is clear:

- in Kyiv, everything started with protests that the government tried to suppress for several months

- in Crimea everything started with Russian military taking control over the peninsula which is a foreign intervention, exactly the type that commenters above try to attribute to USA. But there were no USA soldiers on Maidan, and there were Russian soldiers in Crimea and Donbass.

comment 4y ago · link · parent

> You can live a whole life not leaving your country.

As I undertand, that doesn't prevent you from being extradited. Here are quotes from the article which hint at that:

> US prosecutors, including Faruqui, had argued that he [South Korean citizen who owned a server] should be extradited to the United States to face charges in the American justice system, but Korea had denied their request.

> With the help of the Dutch national police, they arrested the site’s alleged administrator in the Netherlands, a man named Michael Rahim Mohammad, who went by the online handle “Mr. Dark.” He faces criminal charges in the US, and his case is ongoing.

> For what it's worth, some countries do refuse to extradite their own citizens

And that is a right thing.

> The evidence is in a foreign country, and you can't effectively subpoena people in foreign countries to make them produce documents or take the stand.

The prosecutors from a foreign country can gather evidence themselves.

comment 4y ago · link · parent

> for instance if the crime in the US could be punished with death, the UK will require that be taken off the table before extradition.

I am surprised that anyone can be fooled by this. If USA cannot sentence someone to death, they still can sentence him to 500 years in prison which is basically the same and doesn't violate any agreements.

> Is likely contained in the treaties between countries. It seems to me that such a treaty should absolutely have a "that's not even a crime here" provision, but I have no real idea if they do

Obviously there is no such rules. The article mentions that if the owner of the server would get extradited from North Korea to USA he could get more strict punishment.

comment 4y ago · link · parent

No, extradition is unfair. Let's say someone did X, Y and Z where X is punishable in both countries, and Y and Z is only punishable in USA. If he stays in his country, he gets a punishment only for X, but if extradited to USA, he gets a punishment for Y and Z also. Although his country's laws allowed him to do Y and Z.

comment 4y ago · link · parent

> Is that what you consider "slavery"?

Yes, because a citizen is forcible removed from his native country. And because he can get much more severe punishment that we would get in his own country.

Let's say someone from country A uses a stoled credit card which is punished with 1 year of prison in A and 5 years of prison in B. Also (what a careless mistake), he speaks ill of the Queen and the Party which is not a crime in A, but is punished with 5 years of prison in B.

If he is prosecuted in A, he gets 1 year of prison. If he gets extradited he gets 10 years of prison and gets a punishment for a deed that is not a crime in his own country. How can this be fair? The laws of his country guaranteed that he would be free one year later and that he could speak ill of Queen.

Let's say country A has treaties with 50 other countries. This means that now citizens of A must learn laws of all those countries in order not to break them.

if you think that extradition is fair, would you agree to extradite people to countries like China, Russia or North Korea?

comment 4y ago · link · parent

> Ignoring jurisdiction questions, what you're suggesting is that courts in country B have to:

> understand the hierarchy of the legal system in A (what precedent is binding, what precedent is advisory)

No, I meant the court in country B would follow laws and procedures of country B.

> somehow decide what constitutes a qualified attorney

This can be specified in an international treaty.

comment 4y ago · link · parent

The article mentions extradition, so I would like to hijack this thread to disscuss that. Don't you think that extradition is something like a custom from an age of slave trade? Queens and Presidents trade their citizens like slaves. A person born in one country, protected by its Constitution, gets brought into other country where none of constitutional rights apply any more, where he doesn't know local laws and local language, doesn't have a lawyer, doesn't know his rights and where he cannot defend himself as well as in his own country. Furthermore, a crime he has commited might be punished much more strictly in that other country, for example, 20 years instead of 4 years and additionally he can be charged with crimes that are not a crime in his country and wouldn't allow to extradite him. Also, that country might not allow criminal's family to visit him in prison (the right that he had in the country of origin).

How is this compatible with human rights? The proper process should be like this: if country A thinks that someone from country B has commited a crime against them then they should come to that country and prove it in a court without being able to add additional charges. This is the only way where the defendand won't be stripped of their rights.

Am I missing something here and there are valid reasons why prosecution for international crime cannot be implemented like this?

comment 4y ago · link · parent

And if someone wrote a browser extension that hides those popups (or makes them scrollable instead of sticky), the user would not need to do anything to reject cookies.

comment 4y ago · link · parent

The numbers are suspiciously low. Electron binary itself weighs about 100 Mb, although of course it need not to be fully loaded.

Are you using correct way to measure memory usage? I think that the correct way is to measure all physical memory mapped into all Electron processes (there are several of them), making discount for shared pages and adding swapped out pages (because they can potentially be loaded back into main memory).

In Linux I usually add PSS and swap usage parsed from /proc, which should give correct numbers (PSS is an additive value). For example, all processes of Skype on my system take approximately 459 Mb in RAM and swap file.

If you are only measuring one process memory instead of all and only private memory pages (excluding shared pages and swapped out) then you get the wrong number. I tried to search online what "Memory" column represents in Windows Task Manager and Mac Activity Monitor (which people often use to estimate memory usage), but couldn't find any information. So I cannot be sure that they show true values and that those values can be added to find total memory usage by several processes.

comment 4y ago · link · parent

NixOS might solve dependency issues but it doesn't provide isolation. Currently in a one-user system every app has access to all of user's data and hardware serial numbers. And Linux was not built with a principle of minimum privileges in mind, so for example a PDF viewer can read browser cookies or stored passwords.

comment 4y ago · link · parent

> Administering a global UBI across all nations would be impossible with technology we have today.

The main obstacle is that there is just not enough money for everyone. There is absolutely no problem to prevent fraud by checking government-issued IDs.

comment 4y ago · link · parent

I don't see how an iris scan can be a "proof" of anything. One can simply generate any number of realistic-looking scans. There is a website that generates human faces, it should be possible to generate iris images as well.

Also, I don't see why cryptocurrency is needed for UBI. Is real money unsuitable for this purpose?

comment 4y ago · link · parent

I think you are making a mistake here comparing probability of death in a general population and a population of migrant workers. In general population there are people of different ages, including very old people, people with incurable illnesses, people with poor health. For comparison, migrants are generally more healthy because otherwise they wouldn't be able to do their job. For example, migrant workers are unlikely to die from being too old. Therefore, the probability of death from natural reasons for a migrant should be lower.

So we can assume that those 6500 people probably died because of other reasons, like traffic accidents, workplace accidents, bad living conditions, not getting medical treatment, and so on.

comment 4y ago · link · parent

If you link /bin to /usr/bin then all binaries will be available under /bin, and developers will hardcode paths like /bin/python3. This will make programs non-portable to other distributiobns with separate /bin and /usr/bin. The link farm doesn't have this problem.

comment 4y ago · link · parent

Maybe he didn't know that those were the same person?

comment 4y ago · link · parent

What surprised me is that the company demands over $375000 (+ attorney fees) which is a several year income for an average person. But have you ever heard about a company being fined or sued for an amount equal to its several-year income?

Also, as I understand, all Krebs has done is wrote "X told me about Y". How is that statement false, if X really contacted Krebs and told about Y?

comment 4y ago · link · parent

Signal requires a phone number and doesn't allow anonymous usage as I understand.

comment 4y ago · link · parent

I didn't understand the algorithm completely (for example, whether you post your vote anonymously or under your name, and where is the private key for the public key you mentioned).

Let's say bulletin board software replaces the vote with 20% probability. You post your vote for candidate A and see that it didn't appear on the board (because the board replaced it with vote for candidate B, but you don't know about it). How can you prove that you tried to vote for A and not for B? The records show that you have voted, and as voting is anonymous it is impossible to know how you voted.

Of course, there are other ways to meddle with such election. For example, you see that the turnout is 99%. How can you verify this number? The government refuses to publish a list of voters because GDPR doesn't allow that. And even if the country publishes this list how you can verify that the list doesn't contain fictious voters?

comment 4y ago · link · parent

Government-issued certificates for electronic voting are a terrible solution because it is trivial to generate millions of certificates for fictious voters and vote in their name.

comment 4y ago · link · parent

With paper voting you can see that there are real people casting votes. With electronic voting it is trivial to add fictious voters and vote for them, especially in countries where voter lists are not published.

comment 4y ago · link · parent

Electronic voting is very difficult to monitor and verify independently, especially when voter lists are not publicly available. It is difficult to verify whether turnout number is correct, and on the countrary it is easy to add millions of fictious voters and vote for them.

> it's possible to check for yourself that your vote was actually counted and not ignored.

Let's say you voted for candidate A and didn't find your vote. How can you prove that you really voted for A?

> Everyone could get a notification on their phone when they are asked to vote on something as opposed to having to fill out paper and send it somewhere to be counted.

Voting with such system is equivalent to publishing results without any actual voting.

comment 4y ago · link · parent

If your computer gets infected by virus, all your passwords will be leaked. In comparison, a physical key cannot be stolen by a virus. Also, using a physical key is much easier for an average user than installing a password manager, integrating it with applications, thinking of a secure password and typing it every time you need to login.

comment 4y ago · link · parent

> Single address space OS's in a broader sense have been made unviable by Spectre vulnerabilities;

This is valid only for current CPUs and probably can be fixed. For example, current CPUs do not do speculative accesses for memory-mapped IO, and it means that similar method could be used to prevent access to kernel or other processes memory. There could be registers that contain lower and upper bounds of accessible memory, and they could be checked before accessing it.

comment 4y ago · link · parent

I agree with the author that passwords are poor solution from usability and security standpoint, and the reason they are used is because of easy implementation.

Having to make a password is not a pleasant user experience. You type a password you used for another site only to get a message saying that you need to add digits and symbols. So annoying. Now you have to remember two passwords.

And if you try to follow the best security practices, everything becomes even more difficult. For example, it is recommended to use different passwords for different sites. But can an average human remember 20, 50 or 100 different passwords? Unlikely.

So instead users simply use same or similar passwords and save them in a browser. Which means, once their computer gets hacked or stolen all their passwords are leaked. And even if a user doesn't save passwords, they can be stolen with a keylogger.

Passwords can also be bruteforced or leaked when the server is hacked.

Here in Russia banks always require a SMS confirmation to login - which means that passwords are not considered secure by them.

Author suggests to use key files instead. They offer slightly better security if protected with a password, but still can be stolen by a malware and still have inconvenience of dealing with passwords. In legacy OS like Windows or Linux every application has access to all user files, so any of them could steal your keys.

Therefore I think that the solution to both usability and security issues would be a physical key. It could be optionally protected with a PIN code.

Imagine how easy it would be to login or register - you simply insert the key into a lock and press a button. It is better than passwords or key files in every aspect.

comment 4y ago · link · parent

> Think about it this way: if the TCP stack is in user space then how does another process talk to it to send a packet?

In a microkernel system, if a process holds a handle to a TCP stack then it can make calls like create_socket() and then use a socket. For better performance such calls can be executed without visiting the kernel, via call gates. If a process doesn't have a TCP handle, then it cannot access the network which is the best choice for most applications. And of course a privileged enough process can tap into other processes' inter-process calls and see what they are sending and receiving, or even intercept those calls and modify requests and responses, for example, to emulate a network card or to act as a firewall.

In legacy systems like Linux or Windows every process has excess privileges - for example, access to network, to filesystem, to information about other processes, to shared memory, to hardware serial numbers. Linux has several hundreds system calls and they are available to any process. In a microkernel system I am describing the process would have the minimal privileges necessary for its job. For example, a TCP daemon would only have a handle to a router daemon (that redirects packets to a network interface) and no access to filesystem, information about kernel, and so on. Even if this daemon had a vulnerability it wouldn't be of much use for an attacker.

comment 4y ago · link · parent

> with context switching between user and kernel space.

This is an issue only because today CPUs are optimized for legacy monolith kernels which rarely switch and not for microkernels.

Microkernels are very important because they allow to reduce privileged code size and move most things out of kernel. Legacy kernels like Linux or Windows are just an endless source of vulnerabilities, use legacy programming languages and have zero security. Linux doesn't even use static code analysis.

For example, in Linux a network card driver runs at kernel with maximum privileges. In a microkernel it would be a separate process without access to anything in the system (even to a file system) so exploiting it wouldn't give much to attacker.

comment 4y ago · link · parent

Do you need all of that for a software run on a Raspberry Pi (as article suggests) or similar embedded devices? I think just one application binary should be enough.

comment 4y ago · link · parent

What I would like to have is a context switch latency comparable to a function call. For example, if in a microkernel system bus driver, network card driver, firewall, TCP stack, socket service are all separate userspace processes, then every time a packet arrives there would be a context-switching festival.

As I understand, in microkernel OSes most system calls are simply IPCs - for example, network card driver passes incoming packet to the firewall. So there is almost no kernel work except for context switch. That's why it has to be as fast as possible and resemble a normal function call, maybe even without invoking the kernel at all. Maybe something like Intel's call gate, but fast.

> they aren't compatible with anything that calls fork().

I wouldn't miss it; for example, Windows works fine without it.

1
113114115
185