I personally dont like the idea of owning a gun illegaly unless if you could comply this law .Some of the reason why people buy gun because of security purposes which they are force to buy it.I think the government must provide security to its citizen of the society so that it will lessen owning illegal gun and less shooting incident would happen.
Achieving this is not currently practical economically or otherwise.
A quick peek at Google shows 7.7/1000 restraining orders alone (U.S.). Usually restraining orders are taken out by a female when there are problems with a violent and unpredictable former male partner, and often enough the restrainee violates the order. Considering the population (well North of 300,000,000 here) protecting these people alone with state provided physical security is completely out of the question.
What the state can do, or at least will soon be able to do, would be to fit all citizens with biometric tracking devices. These devices could be configured to detect behavior which constitutes a security risk and modifies such behavior in real time. I've no doubt that many people in leadership positions would welcome such a thing (for all but themselves), and I would guess that many people would consider that so outfiting all citizens (including themselves) in the interest of security would be worth the theoretical problems which could crop up.
Of course, in some situations (like mine) threats from wild animals and other rural duties are the primary reason I 'keep and bear arms' so even if the threat from my fellow humans (especially those with a weakness for methamphetamines) were non-existent I would still have need for firearms.